#include <gmlib/sm2/internal/sm2p256v1.h>
#include <stdexcept>
#include <cstring>

using namespace sm2::internal;

void test_sm2_fp_mul()
{
    sm2_fp_t    a, b, c;
    std::uint8_t c_data[32];

    static std::uint8_t a0[32] = {0x71,0xd4,0x9b,0x02,0xe7,0x75,0xaf,0x6f,0xb8,0xec,0xbb,0x21,0xb0,0x82,0xa9,0x72,0x07,0x2b,0x96,0x67,0x17,0x82,0xc1,0x1c,0xbb,0x3c,0xff,0xca,0x13,0xb2,0x9b,0x22};
    static std::uint8_t b0[32] = {0x7c,0xf7,0x3e,0xcd,0xd7,0x81,0x2f,0xe1,0x7b,0xff,0x11,0xb0,0x43,0x0f,0xc8,0xf5,0x1d,0x5b,0xdd,0x5d,0xc9,0x85,0xa3,0x6e,0x84,0x96,0x6d,0x6f,0x9d,0x03,0x29,0x37};
    static std::uint8_t c0[32] = {0xc5,0x65,0x3f,0x23,0xe6,0xfd,0x83,0xad,0x2e,0xe0,0xbd,0x16,0xb0,0xdd,0x69,0x76,0x66,0x82,0x96,0xeb,0xb9,0x48,0xe4,0xf0,0x55,0x4a,0x9a,0x84,0x08,0xca,0x0d,0xc7};
    sm2_fp_from_bytes(a, a0);
    sm2_fp_from_bytes(b, b0);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c0, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a1[32] = {0x07,0xba,0xd6,0x93,0x24,0x7e,0x21,0x5e,0x2d,0x96,0xa6,0x16,0x34,0x92,0x10,0xd5,0x4e,0x77,0x06,0x7b,0x63,0x48,0xee,0x08,0xbb,0xf3,0x40,0x12,0xea,0x6e,0x5e,0xf1};
    static std::uint8_t b1[32] = {0xf3,0x6f,0x47,0x35,0x0c,0xc1,0x6e,0xf0,0x28,0x31,0x0c,0x04,0x80,0x36,0x0a,0x8e,0x22,0x23,0x7d,0xae,0x50,0xe3,0xd0,0x43,0xe9,0x7b,0x34,0xa0,0x13,0x88,0x35,0xed};
    static std::uint8_t c1[32] = {0x71,0x26,0x61,0x07,0xa7,0xd7,0x01,0x74,0x2f,0xdd,0xf9,0x5e,0xe9,0x3d,0xa1,0x5f,0x32,0xbf,0xcc,0xa2,0x33,0xe5,0x1b,0x8a,0x26,0x84,0xd9,0x72,0x18,0x75,0xfe,0x45};
    sm2_fp_from_bytes(a, a1);
    sm2_fp_from_bytes(b, b1);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c1, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a2[32] = {0x1e,0xb6,0x7a,0xcf,0x88,0x2f,0x8d,0x06,0xc1,0x92,0x7d,0x1a,0x6d,0xec,0xd1,0x78,0x7a,0x56,0xe8,0x6e,0x8e,0xbb,0xc7,0xc9,0xe1,0x52,0xbe,0xed,0xc6,0xca,0xf7,0x40};
    static std::uint8_t b2[32] = {0x7b,0x6e,0x9d,0x93,0xf3,0x4f,0x4b,0x9a,0x60,0x15,0xd9,0xc9,0x38,0xd4,0x6b,0x83,0xad,0xf6,0xb3,0xa8,0x40,0xc1,0xb1,0xf9,0xc0,0x3c,0xf7,0x2a,0x76,0x43,0xe8,0xf8};
    static std::uint8_t c2[32] = {0x27,0xba,0x3b,0xa1,0x3b,0x84,0xe3,0xff,0x87,0x02,0xe2,0xc1,0x2e,0x9e,0x24,0x3f,0x5b,0x5b,0xdb,0xc8,0x1d,0xd0,0xe3,0x01,0xcd,0x3e,0x8e,0x91,0xbb,0x18,0x31,0x17};
    sm2_fp_from_bytes(a, a2);
    sm2_fp_from_bytes(b, b2);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c2, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a3[32] = {0xd8,0x12,0x51,0x2a,0x58,0xfa,0xd0,0x71,0x4a,0x6a,0x77,0xbd,0x6e,0xb9,0xfa,0xc4,0xb8,0x2f,0x17,0x32,0x08,0xfb,0x70,0xc5,0x03,0xe3,0xa4,0xbd,0xff,0x9b,0xbc,0xd3};
    static std::uint8_t b3[32] = {0xd1,0x13,0x03,0x5b,0x4d,0xb7,0xfd,0x39,0xf0,0x2e,0x71,0x00,0xd1,0xef,0x13,0x83,0x36,0xf9,0xe0,0x36,0x5c,0x53,0x93,0xf8,0x8d,0x59,0x5b,0x6d,0x0e,0x5d,0x31,0x22};
    static std::uint8_t c3[32] = {0x7e,0x75,0xf4,0xcf,0xd8,0x0d,0x27,0x0e,0x78,0x64,0xab,0x5b,0xaa,0x40,0x58,0xbf,0xf5,0xd3,0xbe,0x8b,0x8b,0xe0,0xaa,0x12,0xac,0x36,0x64,0x91,0x2c,0xf5,0x6a,0xd8};
    sm2_fp_from_bytes(a, a3);
    sm2_fp_from_bytes(b, b3);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c3, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a4[32] = {0x27,0x7a,0xc0,0x15,0xc8,0xe1,0xae,0x97,0x92,0x71,0xf8,0x11,0x9d,0x5b,0xb0,0x81,0xc7,0x71,0xf6,0x73,0xdb,0xba,0xe2,0x76,0x9b,0x69,0xe7,0x7a,0xec,0x86,0x3e,0xbf};
    static std::uint8_t b4[32] = {0x36,0x26,0x99,0xf6,0xc7,0xf7,0x30,0xcb,0x02,0xa4,0xf2,0x7c,0xc4,0x31,0x1c,0x31,0x2c,0x57,0x26,0xbd,0x7c,0x30,0x9a,0x5c,0x58,0xdb,0xc3,0x8e,0x4a,0x07,0x4f,0xc3};
    static std::uint8_t c4[32] = {0xfc,0x5d,0x12,0x65,0xe7,0x94,0x58,0xfe,0xd4,0xd0,0xdb,0xcd,0xbb,0xc9,0xc3,0xd3,0xae,0x5d,0xed,0x96,0x99,0x20,0x9a,0x9d,0x1d,0xda,0x36,0xc5,0x5f,0x66,0x06,0xfe};
    sm2_fp_from_bytes(a, a4);
    sm2_fp_from_bytes(b, b4);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c4, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a5[32] = {0x46,0xfe,0xa2,0x05,0x36,0xe7,0xfa,0xb1,0xa6,0xb5,0xbd,0xd0,0x53,0x87,0xb9,0x82,0x4f,0x54,0x94,0x02,0x50,0xd5,0x5d,0xce,0xf3,0x0a,0x80,0xb4,0xf5,0xdd,0xc1,0x0f};
    static std::uint8_t b5[32] = {0x4e,0x9b,0xc5,0xc4,0x0f,0x62,0x02,0x82,0x38,0x15,0x1f,0x05,0x79,0x67,0x54,0x75,0x8d,0x62,0x24,0x79,0xd2,0x18,0x37,0xd1,0xe9,0x46,0xa9,0x2e,0xfa,0xac,0x6c,0xf7};
    static std::uint8_t c5[32] = {0xb3,0x47,0x29,0xb5,0x13,0x08,0xd8,0xba,0x26,0x6f,0x29,0x37,0xa5,0xa7,0x85,0xb3,0xa7,0x26,0x25,0x9c,0x68,0xc3,0xe1,0x7b,0xd7,0x93,0x37,0xb9,0xed,0xc8,0xec,0x67};
    sm2_fp_from_bytes(a, a5);
    sm2_fp_from_bytes(b, b5);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c5, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a6[32] = {0xdf,0xd8,0xd5,0x06,0x63,0xa1,0x1d,0x84,0xb5,0x76,0xd8,0x05,0x74,0x76,0x53,0x98,0xc7,0x7a,0x16,0x32,0x74,0x1a,0xc0,0x74,0x0c,0xaa,0xe3,0x74,0x71,0x7a,0xc1,0xac};
    static std::uint8_t b6[32] = {0xde,0x33,0xfd,0xbb,0x1b,0x91,0x59,0x2d,0x2f,0xcb,0xde,0xf1,0x0a,0x40,0x2b,0x62,0x8e,0x70,0x27,0x7c,0x2d,0x65,0x32,0x89,0x77,0x83,0xcc,0xb0,0x9b,0x00,0x8c,0x1b};
    static std::uint8_t c6[32] = {0xfe,0x23,0xcf,0x05,0xed,0xef,0x11,0x86,0x9d,0x92,0x4c,0x43,0x6b,0xaa,0x3d,0x87,0x6e,0x23,0x71,0x9f,0x2f,0xbb,0x4f,0x62,0x17,0x82,0x41,0x0f,0x0f,0xa4,0xa8,0x58};
    sm2_fp_from_bytes(a, a6);
    sm2_fp_from_bytes(b, b6);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c6, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a7[32] = {0xe7,0x2c,0xf7,0x35,0x5e,0xa9,0x6f,0xf1,0x7b,0x09,0x8d,0x76,0x9b,0x7c,0x78,0x36,0x81,0x4a,0x81,0xd5,0x36,0xae,0x2d,0xaf,0x16,0x61,0x25,0x94,0xe4,0x46,0x53,0xbc};
    static std::uint8_t b7[32] = {0x15,0x17,0x8e,0x13,0x95,0x49,0xae,0xc1,0xfe,0xbe,0x2d,0x9c,0x3d,0x3e,0x1f,0xfb,0xac,0xdf,0x69,0x9c,0x30,0x38,0xee,0x25,0x3d,0x27,0x19,0x7a,0x49,0x18,0xd0,0xec};
    static std::uint8_t c7[32] = {0x9e,0xfb,0x91,0xb4,0x4e,0x9a,0xca,0x64,0x39,0x9f,0x52,0x92,0x1f,0x96,0x1f,0x93,0x46,0x90,0xf0,0x37,0xe5,0xed,0x4e,0x2e,0xb1,0xef,0x32,0x67,0x3c,0xd6,0x69,0xfa};
    sm2_fp_from_bytes(a, a7);
    sm2_fp_from_bytes(b, b7);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c7, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a8[32] = {0xe5,0x58,0x46,0xba,0x36,0x90,0x16,0x61,0x4b,0xb0,0x37,0x8c,0x35,0x44,0x79,0xe5,0x36,0x76,0x17,0x90,0x7f,0x68,0xe9,0xf6,0x84,0x76,0xbc,0x11,0xe5,0xcb,0xf4,0x5b};
    static std::uint8_t b8[32] = {0x3d,0x22,0x52,0x2b,0xfb,0x65,0x36,0x45,0xca,0xc1,0x3f,0xf8,0xfd,0xde,0xb7,0x87,0xc6,0xc1,0x23,0x7a,0x1c,0x79,0x8f,0x42,0x72,0x2a,0xc5,0x07,0xcf,0x01,0x09,0xc4};
    static std::uint8_t c8[32] = {0x50,0x43,0x0f,0xed,0x3b,0x77,0x2e,0xbd,0xd7,0xcf,0xf7,0xd1,0x93,0x88,0x39,0xce,0xf6,0x64,0x4f,0x73,0x1d,0x05,0x53,0xc2,0x45,0xe3,0xba,0x9d,0xf6,0xd0,0xd1,0xd3};
    sm2_fp_from_bytes(a, a8);
    sm2_fp_from_bytes(b, b8);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c8, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a9[32] = {0x79,0x39,0xd9,0x07,0x04,0xfe,0x3a,0xf2,0xd4,0x9a,0xaf,0x1d,0x0c,0x0c,0xa1,0xa4,0x60,0xc8,0x43,0x48,0xa2,0xf2,0xfe,0x09,0x97,0x17,0x36,0xb1,0x13,0xb2,0xe1,0x92};
    static std::uint8_t b9[32] = {0xc3,0x59,0xcd,0xdc,0x1f,0x33,0x45,0x10,0x4d,0xf7,0x3f,0x97,0xe2,0xed,0x26,0x05,0x93,0x49,0x01,0xdb,0x43,0xf5,0x82,0xbf,0x91,0x5e,0x60,0x01,0xcb,0x4a,0xc3,0xae};
    static std::uint8_t c9[32] = {0x78,0xe5,0xb4,0x8d,0x65,0xf9,0x3f,0xe8,0xa2,0x95,0xee,0xa0,0x3a,0x82,0x21,0x1a,0x15,0xe1,0xfd,0xf7,0x1b,0xe8,0x58,0x5a,0x41,0xe6,0x83,0x40,0x37,0x69,0xeb,0xff};
    sm2_fp_from_bytes(a, a9);
    sm2_fp_from_bytes(b, b9);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c9, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a10[32] = {0xd0,0x5a,0x58,0x51,0x7b,0xdf,0x98,0x7e,0x00,0x1e,0x11,0xa7,0xe2,0xd4,0x0d,0xb5,0xa5,0x0e,0xe1,0x02,0xae,0x1d,0x70,0xad,0x83,0x50,0xf8,0x09,0x3a,0xd8,0xa4,0x13};
    static std::uint8_t b10[32] = {0x67,0xd3,0x6d,0x63,0xdc,0x0c,0x8c,0xc7,0xf3,0x44,0xaf,0x43,0xa4,0x1b,0x7a,0xca,0x53,0x49,0x5d,0x07,0xb9,0x8a,0x4f,0xe8,0xdc,0xe1,0x5c,0x9a,0x0f,0xb7,0x3d,0x05};
    static std::uint8_t c10[32] = {0x26,0x3d,0x1a,0x79,0xb9,0x7d,0x62,0x80,0x09,0x41,0x95,0x70,0x3d,0xce,0x3e,0x61,0x84,0xc3,0x5b,0xfc,0x49,0x5c,0x3f,0x6f,0xe7,0x49,0x1d,0x60,0x93,0x02,0xc7,0x10};
    sm2_fp_from_bytes(a, a10);
    sm2_fp_from_bytes(b, b10);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c10, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a11[32] = {0xb8,0xc1,0x15,0x07,0xaa,0xdb,0xb9,0x09,0x28,0x2a,0x89,0xc8,0x61,0xe7,0x63,0x55,0x46,0x0e,0x32,0x60,0x59,0x79,0x50,0xe3,0xd1,0xbb,0x6c,0x84,0x44,0xef,0x33,0x5e};
    static std::uint8_t b11[32] = {0x1e,0x99,0xda,0x16,0xc5,0x9f,0x08,0x0a,0x8a,0x50,0x56,0x5c,0xbf,0x33,0x2f,0x4e,0x60,0x74,0xdc,0x02,0x67,0x75,0xf8,0x66,0xec,0xe3,0x59,0x4c,0x53,0x69,0x52,0xf3};
    static std::uint8_t c11[32] = {0xdb,0xa3,0xee,0x6c,0xfe,0xc2,0xa1,0x4c,0xca,0x93,0x37,0x00,0x94,0x94,0xfe,0x36,0x29,0x02,0x9c,0x7e,0xc0,0xee,0x34,0x57,0x00,0xa5,0xd8,0x92,0x0b,0xd0,0xec,0xa0};
    sm2_fp_from_bytes(a, a11);
    sm2_fp_from_bytes(b, b11);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c11, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a12[32] = {0xac,0x2a,0x57,0x4d,0x35,0xab,0x2c,0x80,0xd3,0x84,0xcc,0xa3,0x99,0x75,0xa5,0x73,0x36,0x85,0x06,0x61,0x53,0x70,0x9f,0xd4,0x1d,0x98,0x1a,0x8c,0xae,0x60,0x72,0x53};
    static std::uint8_t b12[32] = {0xd4,0xe1,0xa1,0x56,0xe6,0x54,0xa8,0x9f,0x85,0xb1,0x27,0xf9,0x5f,0x77,0xae,0xce,0x51,0xcf,0x30,0x5a,0x7a,0x77,0x01,0x7e,0xc7,0x40,0xe0,0x3e,0x19,0x84,0x88,0xdf};
    static std::uint8_t c12[32] = {0xf1,0x82,0xb4,0xcd,0xb0,0x89,0xac,0xe2,0x3e,0x3d,0xe1,0xdc,0x4c,0xb4,0x1e,0x1d,0xd2,0x6a,0x60,0xcb,0xaa,0xd8,0xb6,0x61,0xf1,0x2e,0x0f,0x70,0xd7,0xf7,0xa7,0x24};
    sm2_fp_from_bytes(a, a12);
    sm2_fp_from_bytes(b, b12);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c12, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a13[32] = {0x25,0xfc,0xdb,0xa1,0xdb,0xf8,0x13,0x63,0xae,0x60,0x3a,0xdb,0xb0,0x84,0x28,0x1f,0xb8,0x62,0x91,0xaf,0xee,0x98,0x62,0xa6,0xe6,0xcf,0x5c,0xa0,0xbf,0x97,0xac,0x81};
    static std::uint8_t b13[32] = {0xbc,0x6b,0x51,0x3a,0x13,0xaa,0xc9,0xa8,0x8c,0x27,0xc2,0x97,0xc8,0x9c,0x5a,0xe2,0xa9,0x1b,0x07,0x32,0x03,0xf1,0x58,0x6f,0x13,0x69,0xba,0xba,0x89,0xfd,0x91,0xbc};
    static std::uint8_t c13[32] = {0xf8,0xbc,0xac,0x8d,0x97,0x0a,0xfb,0x4f,0xca,0xad,0x45,0x4b,0x3f,0x5a,0x92,0x10,0x82,0x8a,0x44,0x4a,0xcf,0xff,0xfb,0x0a,0xb6,0x27,0x12,0x66,0x4d,0x7b,0x42,0x9e};
    sm2_fp_from_bytes(a, a13);
    sm2_fp_from_bytes(b, b13);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c13, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a14[32] = {0x19,0x0e,0xa5,0xb2,0x46,0x36,0x68,0x3d,0x06,0x0d,0x69,0xfb,0xa9,0x74,0xc1,0x12,0xe0,0x6c,0x3e,0x07,0xe1,0x2c,0x2a,0xec,0xb9,0xca,0x06,0x01,0xfa,0x08,0xbc,0xf8};
    static std::uint8_t b14[32] = {0xc0,0xe2,0x50,0xd5,0x51,0x5a,0x35,0x63,0x7d,0x30,0x4a,0x24,0xd9,0x51,0x33,0x08,0x62,0x84,0x41,0x0c,0x37,0x79,0x83,0xf5,0xde,0x82,0x08,0xc6,0x0f,0x14,0x01,0xe0};
    static std::uint8_t c14[32] = {0xf6,0xc8,0x1a,0x58,0xb0,0xb0,0x07,0x35,0xe0,0xca,0x7d,0xd6,0x8b,0x5f,0xda,0x67,0xd3,0x1c,0x8d,0xd2,0xe9,0x14,0x9d,0x4d,0x45,0x1e,0x9a,0x59,0xc3,0x47,0xce,0xf8};
    sm2_fp_from_bytes(a, a14);
    sm2_fp_from_bytes(b, b14);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c14, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a15[32] = {0x57,0xaa,0x30,0x77,0xbf,0xf1,0x37,0xd2,0xf4,0x35,0x54,0x05,0x50,0xb1,0xd2,0x1f,0x7b,0xcb,0xf7,0x93,0x85,0xcc,0xd2,0xb9,0x8c,0x4d,0xf5,0x9e,0x17,0x86,0xae,0x88};
    static std::uint8_t b15[32] = {0x8a,0x68,0x04,0x74,0x5b,0x7b,0xfc,0x9b,0xea,0x95,0x3f,0x54,0x5a,0xb3,0x2e,0xaa,0x3f,0x66,0x36,0x57,0x7f,0x7a,0x99,0xf1,0xdd,0xe9,0x60,0x2a,0xc4,0xd5,0x47,0x77};
    static std::uint8_t c15[32] = {0x27,0xd5,0x74,0x4d,0xf0,0x8f,0x87,0x4d,0xee,0xb7,0x96,0xb8,0x3c,0xb4,0xd6,0x92,0x5d,0x39,0xa4,0xa1,0xb0,0x6e,0x58,0x77,0x8a,0xfb,0xff,0xec,0x3f,0x5d,0x7c,0x4c};
    sm2_fp_from_bytes(a, a15);
    sm2_fp_from_bytes(b, b15);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c15, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a16[32] = {0x41,0xf4,0x76,0x9e,0x91,0x7a,0x86,0x91,0x2f,0x27,0x33,0x26,0x9a,0x16,0xea,0xfc,0x61,0xac,0xc1,0x41,0xf0,0xd4,0x7b,0x01,0x68,0x48,0xa6,0x53,0xa6,0x3a,0xcd,0x94};
    static std::uint8_t b16[32] = {0xae,0x3b,0x79,0x06,0x17,0x2d,0xa7,0xfa,0x3c,0xab,0x27,0x58,0x6e,0x8c,0x3f,0x90,0x2d,0x11,0xdf,0x84,0xb8,0xbe,0x09,0x2b,0xd3,0x68,0xdd,0x80,0x34,0x80,0x27,0xa5};
    static std::uint8_t c16[32] = {0x91,0xcc,0x89,0x80,0xe3,0x9f,0x60,0xda,0x3b,0x08,0x45,0xa1,0xa8,0x06,0x27,0x31,0xb8,0xdf,0x43,0x8a,0xdd,0x04,0x82,0x24,0x4d,0x7c,0x72,0xc4,0x48,0x74,0x45,0x63};
    sm2_fp_from_bytes(a, a16);
    sm2_fp_from_bytes(b, b16);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c16, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a17[32] = {0x88,0x09,0x09,0xd2,0x4b,0xe5,0xb9,0xfe,0xf3,0xed,0x01,0x8e,0x17,0x2f,0x3a,0xaa,0xb0,0xff,0x5d,0xc6,0x90,0x58,0x58,0x30,0x3e,0xfd,0xa1,0x72,0x1b,0x08,0x0f,0x07};
    static std::uint8_t b17[32] = {0x36,0xe3,0x5a,0x5e,0xb4,0xd4,0x19,0x65,0x50,0xac,0xc8,0xb8,0x5f,0x51,0x8a,0x61,0x09,0xed,0x83,0xe3,0x90,0x3f,0xd8,0xdd,0xf6,0x26,0x75,0xa1,0x59,0xc8,0xb2,0xb4};
    static std::uint8_t c17[32] = {0xef,0x87,0xbe,0xfa,0x6c,0x38,0x1c,0xb4,0x75,0x4f,0xc0,0xb7,0x2f,0xe3,0xc0,0x33,0x6b,0x7f,0x76,0xbe,0x72,0x5c,0x35,0xcc,0x6c,0x5c,0x7a,0x3e,0x1d,0x94,0xaa,0xc9};
    sm2_fp_from_bytes(a, a17);
    sm2_fp_from_bytes(b, b17);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c17, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a18[32] = {0xa5,0xb9,0xfb,0x55,0x02,0x0d,0x04,0x5c,0x78,0x47,0xe6,0xa2,0x71,0x98,0xd8,0x83,0xa8,0x1d,0x6c,0x53,0xe1,0x18,0x9e,0x71,0x4a,0xe1,0xdc,0xdc,0xc5,0x5e,0x00,0x1f};
    static std::uint8_t b18[32] = {0x15,0x5a,0x68,0xcb,0xc5,0x30,0xc2,0xf1,0xf7,0x38,0x32,0x2c,0x5b,0x42,0xb6,0x36,0x55,0x13,0x53,0xba,0xec,0xe8,0xd7,0xa7,0x83,0x5f,0xe7,0x57,0x79,0x62,0xba,0x58};
    static std::uint8_t c18[32] = {0x45,0xea,0x47,0x6c,0x5c,0x96,0x85,0x3c,0x6e,0x12,0xf4,0x9b,0xe9,0x07,0x64,0x6c,0xf8,0xd1,0xbb,0xc0,0xe5,0x33,0x43,0x95,0x51,0x08,0xcd,0x81,0x11,0x91,0xed,0x62};
    sm2_fp_from_bytes(a, a18);
    sm2_fp_from_bytes(b, b18);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c18, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a19[32] = {0x67,0x18,0x4f,0x06,0xc1,0xa4,0xb6,0x5f,0x6f,0xe0,0x5f,0x1d,0x74,0x1b,0x07,0xe5,0x5b,0x9e,0x3d,0x69,0xba,0xd1,0x04,0x07,0xa7,0x1e,0x88,0xd2,0x34,0x96,0x27,0x08};
    static std::uint8_t b19[32] = {0x61,0xa9,0x08,0xd1,0x52,0xb9,0x75,0x96,0xe7,0x5f,0x7a,0x28,0xcb,0x16,0xcb,0x36,0xf8,0x46,0x68,0x05,0xb2,0xbc,0xde,0x73,0xdf,0xa5,0xaa,0x7e,0xac,0xc5,0x8f,0x29};
    static std::uint8_t c19[32] = {0xa7,0x1d,0xad,0xa8,0x9f,0xb3,0xd7,0x03,0x07,0xf7,0xf4,0xfd,0x97,0xaa,0xaf,0x2b,0xe6,0x39,0xcd,0x64,0xaa,0x8d,0x16,0xc9,0x7e,0x4b,0x3e,0x22,0x2b,0xf3,0x3e,0xa6};
    sm2_fp_from_bytes(a, a19);
    sm2_fp_from_bytes(b, b19);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c19, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a20[32] = {0xce,0x74,0x8e,0x3b,0x1b,0xed,0x88,0x7e,0x9e,0xd1,0x3b,0x51,0x14,0x3c,0x5e,0x93,0xbd,0xf8,0xf2,0xd1,0x70,0x72,0xbb,0x26,0x70,0xd7,0x7d,0x41,0x39,0x01,0x1c,0xb7};
    static std::uint8_t b20[32] = {0x7a,0xf7,0xc2,0x46,0x32,0x0c,0x48,0xcd,0x15,0x14,0x3d,0x16,0x39,0x89,0xc3,0x55,0x26,0x65,0x19,0x6e,0x84,0x74,0x9d,0xf3,0x6c,0xe9,0xec,0xe4,0x85,0xbd,0xe7,0xba};
    static std::uint8_t c20[32] = {0x18,0xec,0x2e,0xd3,0x8f,0xd2,0xff,0xc1,0xd5,0x6b,0xfd,0x95,0x1b,0x47,0x02,0x43,0x41,0x1b,0x5d,0x7f,0x6b,0xb0,0x43,0x79,0x87,0xc0,0x1d,0xea,0xa1,0x14,0xd2,0x26};
    sm2_fp_from_bytes(a, a20);
    sm2_fp_from_bytes(b, b20);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c20, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a21[32] = {0x89,0x6d,0x05,0x9d,0xd5,0x8a,0xa3,0x15,0x0d,0x1e,0xf9,0xab,0x2e,0x6e,0x75,0x89,0x5b,0x1c,0xd7,0x65,0x7b,0x05,0x8a,0xbf,0x95,0x74,0xc8,0x22,0xaa,0xe7,0x72,0xf5};
    static std::uint8_t b21[32] = {0x7e,0x5f,0x7d,0xee,0x48,0x19,0xa8,0x61,0xaa,0x9b,0x2d,0x1c,0x3c,0xfc,0x25,0xfd,0xbc,0xe7,0x93,0x61,0x79,0x97,0xf2,0x79,0xf8,0x96,0x16,0x4d,0xce,0x57,0x2e,0x8c};
    static std::uint8_t c21[32] = {0x01,0x2a,0xde,0x73,0x59,0xb5,0x69,0xba,0xa5,0xda,0x46,0xc4,0xdc,0x42,0xd7,0xe0,0x9c,0xb9,0x21,0x3d,0x36,0x6b,0xd7,0x2f,0x4d,0x5b,0x2d,0x32,0xbe,0xea,0x44,0x96};
    sm2_fp_from_bytes(a, a21);
    sm2_fp_from_bytes(b, b21);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c21, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a22[32] = {0xb6,0x50,0xf0,0x9b,0x1c,0xab,0x9f,0xa2,0x89,0x4b,0x07,0x95,0x75,0x9e,0x3b,0x39,0x98,0x07,0xc0,0x51,0x50,0xd3,0xfe,0x41,0x7b,0x6d,0xec,0x8e,0x40,0x18,0xc1,0x60};
    static std::uint8_t b22[32] = {0x9b,0xc9,0xff,0x38,0x0d,0xde,0x3c,0xec,0xdb,0xe4,0xa9,0x7c,0xa4,0x39,0x23,0xd0,0x21,0x79,0x2d,0x39,0x4f,0x1b,0x49,0x40,0xc2,0x04,0xe4,0xcc,0xa1,0xc8,0x9b,0x90};
    static std::uint8_t c22[32] = {0xa4,0xd9,0x8c,0x00,0x9a,0x34,0xe8,0x0b,0x5c,0xdb,0x43,0x62,0xf3,0x29,0x91,0x6e,0x79,0x6b,0xac,0x27,0xcb,0x85,0xb4,0x1d,0x42,0xc7,0x4b,0x9f,0xd8,0x0d,0xbc,0xaa};
    sm2_fp_from_bytes(a, a22);
    sm2_fp_from_bytes(b, b22);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c22, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a23[32] = {0x64,0x28,0xd9,0x05,0xc9,0xcf,0x30,0xd0,0x9e,0xe7,0x8e,0x8e,0xa7,0x4c,0x59,0xc5,0xd4,0xd3,0xa3,0x16,0x36,0xa5,0xe1,0x36,0xe8,0x4b,0x2f,0x8c,0x34,0x71,0xcf,0xd7};
    static std::uint8_t b23[32] = {0x93,0x18,0xbf,0xff,0x4e,0xac,0x9d,0xe7,0xb6,0x98,0x85,0xd5,0xea,0x90,0x89,0xf8,0x8e,0x6f,0x54,0x49,0xc9,0xb2,0x8b,0x2a,0x99,0x22,0x88,0x70,0xae,0x5f,0x66,0xdd};
    static std::uint8_t c23[32] = {0xde,0xc5,0xfc,0x37,0x2e,0x61,0x71,0xf9,0xf2,0xcc,0x3c,0xd2,0x8e,0x9a,0xd7,0x07,0x65,0xa0,0x19,0x6c,0x33,0x1e,0xae,0xb3,0x09,0xdd,0x64,0x32,0x57,0x1f,0xf3,0x6c};
    sm2_fp_from_bytes(a, a23);
    sm2_fp_from_bytes(b, b23);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c23, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a24[32] = {0x31,0x10,0x48,0x3c,0xbd,0xba,0xd3,0x60,0x4e,0x78,0xdd,0x64,0xbc,0x4a,0x7e,0x0d,0x4e,0x54,0xb9,0xdf,0xdd,0x23,0xf8,0xb0,0xc6,0xeb,0x57,0x07,0x32,0x3c,0xb9,0x06};
    static std::uint8_t b24[32] = {0x3f,0x28,0x45,0xfd,0x89,0x01,0xee,0xdc,0x07,0x1d,0x18,0x35,0x21,0x00,0xda,0xc7,0x79,0x82,0x33,0x48,0xb4,0xc8,0x66,0x26,0x21,0x6b,0x1f,0x76,0xfe,0x77,0xbc,0xf1};
    static std::uint8_t c24[32] = {0x1b,0x34,0x14,0x77,0xfa,0x7e,0xfd,0x84,0x21,0x90,0x45,0x98,0xd2,0x9b,0x6d,0x2f,0x6b,0x8d,0x35,0xa1,0xbe,0xf6,0x2d,0x2e,0xd8,0x71,0x8a,0xbb,0xd1,0xf7,0x11,0x62};
    sm2_fp_from_bytes(a, a24);
    sm2_fp_from_bytes(b, b24);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c24, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a25[32] = {0x76,0x8a,0x8f,0xe3,0x7a,0xf5,0xa9,0x6f,0xb7,0x86,0xbf,0x8a,0x6c,0xca,0xe0,0xaf,0x84,0x07,0x78,0xdb,0xa2,0x82,0x4b,0xc6,0x59,0x95,0xf5,0x48,0x9a,0x51,0xc7,0xd4};
    static std::uint8_t b25[32] = {0xcc,0x4b,0xbb,0x10,0x15,0x2e,0x82,0xde,0x57,0x35,0x18,0xe7,0xd6,0xe9,0xaa,0x01,0x7f,0x3b,0xfb,0x5f,0x84,0xe4,0x7c,0xd5,0x83,0xf0,0x00,0x06,0x44,0x4b,0x11,0xa3};
    static std::uint8_t c25[32] = {0xd3,0xaf,0x3d,0xb9,0x71,0xda,0xf1,0xbf,0x2b,0x0b,0x45,0x6d,0x6f,0x5f,0x35,0x66,0x83,0xa6,0x87,0xbc,0x6e,0xf7,0x38,0xf0,0xea,0xed,0x67,0x03,0x41,0xd0,0x1e,0x1b};
    sm2_fp_from_bytes(a, a25);
    sm2_fp_from_bytes(b, b25);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c25, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a26[32] = {0x31,0x5a,0x9e,0x5e,0x65,0x09,0xf5,0xba,0x47,0xc6,0x39,0x11,0x47,0x02,0x69,0x0d,0x36,0xcb,0x9b,0x4b,0x39,0x33,0xc5,0xdb,0x36,0x25,0x9d,0xab,0xf5,0x20,0x07,0xbe};
    static std::uint8_t b26[32] = {0x51,0xde,0x16,0x6d,0x56,0xa2,0x31,0x99,0x24,0xb8,0xaf,0xd7,0xd3,0x5f,0x8f,0xb4,0x58,0xbb,0x17,0xa5,0xd2,0x00,0x8f,0x14,0x28,0x2e,0xb9,0x78,0xf2,0x76,0x2e,0xd4};
    static std::uint8_t c26[32] = {0xc1,0x8f,0x35,0x11,0xa5,0xbd,0xd1,0x8f,0xf9,0x20,0xe9,0xbc,0x5c,0x9f,0x28,0xba,0xbf,0x8b,0xa1,0xa0,0x58,0x9d,0xa2,0x82,0x16,0x00,0x82,0x19,0xa7,0x0c,0x32,0x6b};
    sm2_fp_from_bytes(a, a26);
    sm2_fp_from_bytes(b, b26);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c26, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a27[32] = {0x1c,0x3c,0x8a,0xc5,0x8d,0x7c,0x61,0xa1,0xee,0x40,0x7f,0x07,0xda,0xbf,0xba,0x1d,0x71,0x5e,0x92,0xa7,0x95,0xda,0xbf,0xb1,0x7c,0x37,0x31,0xfa,0xce,0x1b,0xab,0x26};
    static std::uint8_t b27[32] = {0x33,0x26,0xbd,0x99,0x44,0x89,0x58,0x24,0x20,0x05,0xd9,0xf9,0x72,0xbd,0x54,0xeb,0xa0,0xaa,0x94,0x7c,0x82,0x20,0x96,0xd0,0xb7,0x47,0x3b,0x05,0x2b,0x8e,0x04,0xb2};
    static std::uint8_t c27[32] = {0x2e,0xe9,0xd4,0x11,0xa2,0x17,0x87,0x34,0xc2,0x31,0xf4,0x96,0x77,0x9d,0x50,0x67,0x1b,0x3a,0xeb,0x2e,0x28,0x49,0xbb,0x43,0x2d,0xe5,0x80,0x48,0x1a,0xd9,0x87,0x77};
    sm2_fp_from_bytes(a, a27);
    sm2_fp_from_bytes(b, b27);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c27, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a28[32] = {0xf3,0x43,0xb3,0x69,0x1c,0x33,0x3a,0xd9,0xbc,0x59,0x14,0x7f,0x27,0x9b,0x3f,0x98,0x3d,0x17,0xad,0x14,0xb3,0x72,0x20,0xa5,0xe1,0xac,0x88,0x95,0x45,0x6c,0x6d,0x24};
    static std::uint8_t b28[32] = {0xe7,0x46,0xb0,0x70,0x8d,0x3a,0x12,0xcb,0x2c,0x89,0x3e,0x0b,0xe7,0x20,0x26,0x7c,0xcb,0x7e,0xd0,0xfa,0xd1,0x85,0xef,0xae,0xa3,0xe9,0xbc,0xa8,0x53,0xff,0xb6,0x98};
    static std::uint8_t c28[32] = {0x05,0xba,0x21,0x98,0x9c,0x53,0xbc,0xe0,0xf4,0x59,0x08,0x22,0x5c,0x87,0x0e,0xec,0x61,0xec,0x28,0xd0,0x39,0x84,0x88,0x03,0xcd,0xc7,0x74,0x1d,0x74,0x36,0x40,0x4a};
    sm2_fp_from_bytes(a, a28);
    sm2_fp_from_bytes(b, b28);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c28, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a29[32] = {0x50,0x2e,0xa7,0xcf,0x27,0x56,0x6e,0xfe,0xb0,0xdc,0xb5,0xac,0xfd,0x97,0xa3,0x48,0x55,0x78,0x7b,0x62,0x0f,0x39,0x0e,0x99,0xbc,0xcd,0xbf,0x77,0x97,0xed,0x13,0x82};
    static std::uint8_t b29[32] = {0xce,0xdf,0x28,0x96,0x3a,0x9c,0xc6,0xe5,0xf9,0xd5,0x98,0xc5,0x79,0x88,0xe2,0x10,0x01,0x0c,0xf5,0xec,0x4c,0x7e,0x16,0xcf,0xca,0xf7,0x4c,0x95,0xb8,0xfb,0x6f,0x68};
    static std::uint8_t c29[32] = {0x8e,0x6b,0x48,0x94,0x28,0x1d,0x29,0x5b,0x0c,0xaa,0x50,0xbd,0xe1,0x43,0xf0,0xa9,0xf1,0x05,0x44,0x96,0xf2,0x3d,0x2c,0xa6,0xe7,0x2a,0xb2,0x7e,0xfe,0x48,0x6b,0x61};
    sm2_fp_from_bytes(a, a29);
    sm2_fp_from_bytes(b, b29);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c29, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a30[32] = {0x20,0x23,0x55,0xae,0x69,0x99,0x33,0xa7,0x6f,0xf1,0xef,0xb7,0x68,0x1a,0x49,0xba,0xa5,0xce,0x0d,0x6f,0xf4,0x7a,0x74,0xca,0x97,0x3e,0xf8,0xc6,0x9e,0x5d,0x98,0x69};
    static std::uint8_t b30[32] = {0x49,0xad,0xcd,0xe8,0xb8,0xd3,0xd4,0x81,0x28,0xe4,0x31,0xad,0xdb,0x9d,0xc4,0xe8,0x98,0x92,0x35,0x59,0x7e,0xe1,0xf0,0x32,0xf7,0x30,0x74,0xb1,0x7e,0xeb,0x9e,0x5a};
    static std::uint8_t c30[32] = {0x0d,0xba,0xb0,0x8e,0xae,0x3b,0x39,0xdd,0x79,0xda,0x95,0xdf,0x03,0x93,0x01,0x15,0x15,0x73,0xfc,0x54,0x55,0xc6,0x6d,0x36,0x27,0x8a,0x03,0x1c,0x10,0xec,0xe8,0x22};
    sm2_fp_from_bytes(a, a30);
    sm2_fp_from_bytes(b, b30);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c30, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a31[32] = {0x46,0xfc,0x4b,0x05,0x88,0x56,0x05,0x5c,0x33,0xdb,0x49,0x12,0x92,0x45,0x92,0x8f,0xb5,0x8a,0x57,0xd2,0x8b,0xed,0xb9,0x48,0x3f,0x56,0x33,0xae,0x8c,0x76,0xe8,0x35};
    static std::uint8_t b31[32] = {0xd8,0xd6,0x60,0xac,0x63,0xec,0x25,0x29,0xf3,0x6b,0xcd,0xae,0xb7,0x60,0x78,0x87,0x43,0xfb,0xb2,0xae,0x33,0x13,0x45,0x08,0x32,0x9f,0x17,0x50,0x08,0xc9,0x05,0xce};
    static std::uint8_t c31[32] = {0x6f,0x6e,0x57,0x3f,0xdb,0x22,0x04,0x8c,0x32,0x79,0x5a,0x3f,0x2c,0xf8,0x14,0x6c,0xd8,0xcc,0x5a,0x0c,0xb5,0xfd,0x83,0xd6,0xe6,0x20,0xbb,0x9a,0xf1,0x0e,0x9b,0x5c};
    sm2_fp_from_bytes(a, a31);
    sm2_fp_from_bytes(b, b31);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c31, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a32[32] = {0x0a,0xb4,0xb2,0x51,0x7b,0xfa,0xc9,0x3e,0x2d,0x1a,0x68,0x74,0x12,0xc9,0xe6,0x85,0xed,0x75,0xc9,0x64,0xb0,0xb1,0xce,0x32,0x92,0x02,0x63,0xda,0xcf,0xf6,0xc5,0x2a};
    static std::uint8_t b32[32] = {0x81,0xe2,0x44,0xc1,0x8c,0x42,0x7c,0x4e,0xbb,0xf1,0xfc,0xd3,0x98,0x5a,0x41,0x3e,0xeb,0x31,0x10,0x9a,0x04,0x14,0x1b,0x52,0xd3,0x4a,0x38,0xfc,0x63,0xe7,0x54,0x86};
    static std::uint8_t c32[32] = {0x16,0x76,0x33,0x2a,0xfa,0x46,0x04,0xa2,0x31,0x74,0x64,0x51,0xed,0xd0,0xe0,0xfc,0x7f,0xd9,0x05,0xae,0x47,0x96,0x2b,0x83,0xb1,0x71,0x68,0x61,0xec,0x17,0xfb,0xf0};
    sm2_fp_from_bytes(a, a32);
    sm2_fp_from_bytes(b, b32);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c32, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a33[32] = {0xde,0xd3,0x8e,0xd7,0xa6,0xa8,0x9a,0xe5,0xfd,0x34,0x65,0x49,0xd7,0x30,0x8a,0x6c,0x95,0xfa,0x82,0xb6,0xfa,0x9f,0x2a,0x06,0xdf,0x7f,0x2f,0x9a,0x29,0x58,0x17,0xef};
    static std::uint8_t b33[32] = {0x4b,0xa0,0xe4,0xb0,0x1f,0x07,0x37,0xc6,0x78,0x1c,0x20,0xf0,0x13,0x7f,0xa5,0x9f,0x48,0x5a,0xa8,0xd5,0xaa,0x85,0x6e,0xbf,0x7b,0x9a,0xcf,0x74,0x0b,0x4a,0xcb,0x2d};
    static std::uint8_t c33[32] = {0xda,0x89,0x25,0x9a,0xde,0x33,0x05,0x56,0x2e,0xc7,0x6b,0x48,0x24,0x08,0x85,0x15,0x67,0x8e,0x6e,0x91,0x8a,0xc2,0x9c,0xf3,0xa7,0xea,0x01,0x4d,0xf5,0xf9,0x8a,0xef};
    sm2_fp_from_bytes(a, a33);
    sm2_fp_from_bytes(b, b33);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c33, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a34[32] = {0x0e,0xd0,0xc2,0x17,0xa5,0x66,0xe7,0x6b,0x1a,0x81,0xc9,0xad,0x0d,0xcd,0x87,0x7a,0xd1,0x00,0xb7,0x3f,0xbf,0x00,0x74,0xb4,0xfb,0x4f,0xb4,0x46,0x5c,0x98,0xc4,0x25};
    static std::uint8_t b34[32] = {0x07,0x09,0x8d,0xca,0xb4,0x30,0x8e,0xd8,0x82,0xb5,0x93,0xd2,0x35,0xf6,0xe9,0xa7,0x3e,0x8d,0x39,0x5a,0x56,0x72,0xda,0x86,0xdb,0xc7,0xd1,0x32,0x78,0x9b,0x2c,0x71};
    static std::uint8_t c34[32] = {0xff,0x4b,0xce,0xdd,0x52,0xea,0x8a,0x00,0xce,0x4f,0x78,0x70,0x3f,0x33,0xd2,0x1d,0xdc,0xaf,0x67,0x45,0xa4,0x36,0x78,0x63,0x68,0x07,0xbc,0xde,0xef,0x38,0xad,0x6e};
    sm2_fp_from_bytes(a, a34);
    sm2_fp_from_bytes(b, b34);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c34, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a35[32] = {0x1e,0xd0,0xb1,0x78,0x43,0x04,0x0e,0x62,0x29,0x0d,0xf8,0x22,0x3d,0x5e,0x20,0xe6,0xd9,0x08,0xc7,0xf7,0x39,0x18,0xde,0xf0,0x23,0x3b,0xf6,0x8e,0xdf,0x04,0xda,0x9c};
    static std::uint8_t b35[32] = {0xd0,0x30,0x9d,0x92,0x9e,0xb7,0xa1,0xe4,0xe2,0xee,0x53,0xb2,0xe7,0x27,0xe1,0xfb,0x15,0xec,0xd1,0xb5,0xa4,0xe8,0x80,0x6c,0xf6,0x30,0x8d,0x2a,0x32,0x83,0x91,0x09};
    static std::uint8_t c35[32] = {0x69,0x5b,0x32,0x3d,0x23,0x15,0x84,0x1a,0xae,0x55,0xb0,0xd9,0x93,0x6d,0x50,0xd6,0x22,0xdc,0x06,0xfa,0xa1,0xfb,0x44,0x96,0x80,0x44,0x52,0x00,0x7d,0x04,0xf0,0x19};
    sm2_fp_from_bytes(a, a35);
    sm2_fp_from_bytes(b, b35);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c35, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a36[32] = {0x55,0x5d,0x84,0x79,0xd8,0xcd,0x9c,0x4e,0xac,0x8e,0x3c,0xad,0xc1,0x5b,0x30,0x40,0xf8,0x31,0xef,0xe9,0xd7,0x52,0xf6,0xf8,0xe1,0xb3,0x9e,0xa5,0xbe,0x47,0x2b,0x6c};
    static std::uint8_t b36[32] = {0xd8,0x46,0xc3,0xf5,0x2b,0xc3,0x04,0xb0,0x3f,0xd2,0x7c,0x63,0x1c,0x60,0xc1,0x59,0xff,0x29,0x17,0x8f,0xba,0x1c,0x23,0x0a,0xd5,0x74,0x07,0x4d,0x6e,0xcc,0x3e,0xa4};
    static std::uint8_t c36[32] = {0x10,0x46,0x0a,0x7d,0x1a,0xb5,0x2c,0x7c,0xcc,0x2c,0xc1,0x8d,0x57,0x63,0x80,0x57,0x3d,0xe4,0xc4,0xcd,0x2f,0x86,0x08,0xe9,0xbc,0xd4,0xb7,0xae,0xda,0xe4,0xc1,0xee};
    sm2_fp_from_bytes(a, a36);
    sm2_fp_from_bytes(b, b36);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c36, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a37[32] = {0x2a,0x31,0x48,0x91,0xd6,0x8e,0x79,0x97,0x90,0x3d,0x4d,0xfd,0x75,0xca,0xd1,0x18,0x89,0x5b,0x00,0x90,0x1d,0x7d,0x09,0x68,0x6f,0xfa,0xe7,0x88,0x24,0xf5,0xfc,0xbe};
    static std::uint8_t b37[32] = {0xcc,0x34,0xc8,0x54,0x61,0x90,0x8a,0x3c,0xec,0x18,0xea,0x13,0xe5,0xd8,0xba,0x06,0xf2,0x48,0x6e,0xfe,0x15,0x36,0x4a,0x77,0xbb,0x01,0x43,0xfd,0x5a,0x77,0x2c,0x8c};
    static std::uint8_t c37[32] = {0x4b,0x87,0xe7,0xdf,0x70,0xe1,0x3c,0x12,0x32,0x1b,0x4b,0x78,0x6f,0xa8,0xab,0x64,0xcc,0x35,0x7a,0xbf,0x59,0xa1,0x72,0x86,0xc2,0x72,0x58,0xf9,0x90,0xf9,0x48,0x4c};
    sm2_fp_from_bytes(a, a37);
    sm2_fp_from_bytes(b, b37);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c37, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a38[32] = {0x3b,0x7c,0x28,0x60,0xcb,0xa2,0xb9,0x40,0xcf,0x1d,0xe6,0x77,0x36,0xe9,0xd5,0xe3,0xc6,0x92,0x5e,0x9e,0x9a,0xec,0x13,0x98,0xd9,0x21,0x53,0xc5,0xa0,0x5a,0xc8,0x32};
    static std::uint8_t b38[32] = {0x8e,0x08,0xc3,0xf1,0xf5,0x4d,0xbc,0xf6,0x14,0xcd,0xde,0xae,0x69,0x5f,0x71,0x32,0x34,0x25,0x4c,0xec,0xac,0x56,0x89,0x86,0xdd,0xd8,0xdd,0x64,0x15,0x2d,0x87,0x2e};
    static std::uint8_t c38[32] = {0x39,0x88,0xd3,0xf8,0x01,0x5d,0x52,0xe9,0xdc,0x39,0x5c,0x6c,0xd5,0xe1,0x2e,0x03,0x0f,0x18,0x68,0xea,0xf4,0x4e,0x06,0xa1,0x93,0x45,0x8d,0x14,0x91,0xce,0x49,0xd0};
    sm2_fp_from_bytes(a, a38);
    sm2_fp_from_bytes(b, b38);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c38, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a39[32] = {0x3b,0x77,0xc3,0xeb,0x3a,0x01,0xf9,0xee,0xb9,0x5d,0xae,0x88,0x45,0xd5,0xcf,0x80,0x78,0x16,0x3e,0xb3,0xeb,0xbd,0xb3,0xed,0xdc,0xa3,0x26,0xf1,0xb0,0xc5,0x23,0xaf};
    static std::uint8_t b39[32] = {0x7e,0xed,0x6c,0x61,0xed,0xb1,0x57,0xb0,0xd3,0xaa,0x13,0xf1,0xb1,0xe2,0x94,0x56,0xf4,0x30,0xe2,0x2b,0x0a,0xa3,0x33,0x22,0xc7,0xe4,0x12,0x1f,0xab,0x25,0x71,0xb0};
    static std::uint8_t c39[32] = {0x01,0xe5,0x0b,0x86,0x3c,0x95,0x91,0xee,0x8d,0xcd,0xdc,0x4c,0xd9,0x53,0x5c,0x36,0xb4,0xbc,0x31,0x7e,0x5e,0xb5,0x91,0x57,0x1c,0x80,0x80,0xa7,0xfd,0x15,0x2d,0x64};
    sm2_fp_from_bytes(a, a39);
    sm2_fp_from_bytes(b, b39);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c39, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a40[32] = {0x3d,0x88,0x6e,0x34,0xe6,0x5d,0x92,0x66,0xa2,0x19,0xfe,0x12,0xa3,0x62,0x65,0xdd,0xea,0x74,0x15,0x86,0x57,0xb9,0xbf,0xc8,0x20,0xf7,0x37,0xcc,0x1d,0xed,0x72,0x6e};
    static std::uint8_t b40[32] = {0x79,0x18,0x64,0xc7,0xca,0x9e,0xa8,0x6e,0x7e,0x03,0x78,0x5b,0x19,0x62,0x95,0xf9,0xae,0xd0,0x24,0x10,0xd5,0xaa,0x41,0xb3,0xb0,0xa7,0xe6,0x5c,0x3a,0xcc,0xbd,0x0c};
    static std::uint8_t c40[32] = {0xab,0x43,0x62,0x68,0x1b,0x01,0x46,0x45,0xf3,0xfc,0x70,0xf7,0xfd,0xae,0xaa,0xc4,0xf2,0x49,0x88,0xc1,0x09,0x8f,0x63,0x6d,0x69,0xd6,0x34,0x67,0xe8,0x72,0xb6,0xbd};
    sm2_fp_from_bytes(a, a40);
    sm2_fp_from_bytes(b, b40);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c40, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a41[32] = {0x5b,0x2b,0x77,0x67,0x6a,0x7b,0x17,0xc9,0x4e,0x7b,0xd9,0x68,0x03,0x00,0x92,0xbb,0xb1,0x1f,0x5f,0x25,0xcd,0x8d,0x9b,0xcc,0x91,0x9c,0xee,0xb9,0x6c,0x6f,0x0f,0x20};
    static std::uint8_t b41[32] = {0x42,0xa7,0xe5,0xb0,0xaf,0x5e,0x5f,0x76,0x9a,0xd5,0x6f,0xe6,0xa6,0xe3,0x54,0x8b,0xfa,0x11,0x6d,0x6c,0x70,0xba,0xf0,0xa8,0x44,0xa1,0x31,0x14,0xda,0x7f,0x19,0xb5};
    static std::uint8_t c41[32] = {0x5d,0x4d,0x87,0x36,0xfe,0x7f,0xf4,0x22,0xfd,0xd8,0x7e,0xfa,0x0b,0x3e,0xc7,0x34,0xa8,0xe1,0x4e,0x34,0x42,0x6f,0x8e,0xf1,0xa9,0xa3,0x75,0x30,0xaa,0x09,0x08,0x99};
    sm2_fp_from_bytes(a, a41);
    sm2_fp_from_bytes(b, b41);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c41, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a42[32] = {0x5e,0x72,0xbd,0x36,0xd2,0x63,0xc2,0x10,0x03,0x09,0xcb,0x2b,0xe1,0x39,0xbe,0xe0,0x8e,0x91,0x4a,0xeb,0x60,0xeb,0xa4,0x85,0xfd,0xcb,0x7c,0x89,0x62,0xd7,0xd0,0x39};
    static std::uint8_t b42[32] = {0x54,0x69,0x46,0x74,0xc7,0x9f,0x5b,0x96,0x3f,0x9a,0x21,0xfd,0x7a,0x92,0xb9,0xe1,0x79,0x6c,0xd2,0xbc,0x63,0xa5,0xed,0xec,0xde,0x83,0x5f,0x67,0xe1,0x95,0xf2,0xf7};
    static std::uint8_t c42[32] = {0xad,0xdf,0x23,0x0b,0x40,0xb4,0xca,0x12,0x4c,0x85,0xe1,0x68,0xd0,0xeb,0x88,0x12,0xb6,0xe0,0x6c,0x1b,0x78,0x5d,0xd5,0xd4,0x19,0x66,0x9b,0xbf,0xb8,0x66,0xeb,0x60};
    sm2_fp_from_bytes(a, a42);
    sm2_fp_from_bytes(b, b42);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c42, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a43[32] = {0xba,0x1d,0x0f,0x59,0xed,0x42,0x3d,0x59,0x3c,0xc8,0x52,0x07,0x86,0x42,0x93,0xb4,0xac,0x47,0x82,0x98,0x4e,0xf7,0x76,0x07,0x69,0xd6,0x0c,0x39,0x4d,0xc3,0xee,0xfc};
    static std::uint8_t b43[32] = {0x13,0xf2,0xa4,0xb2,0x49,0xae,0x36,0x92,0x1c,0x24,0x23,0xc3,0xf0,0xc4,0xb8,0xea,0xa3,0xfa,0x04,0xa3,0x0c,0xb1,0x5d,0x89,0x2e,0x66,0x30,0xe5,0x59,0x86,0x8f,0x94};
    static std::uint8_t c43[32] = {0x02,0xfb,0xbe,0xf1,0x75,0xe9,0x88,0xa4,0x59,0xe6,0xca,0x07,0x7b,0x8e,0xbe,0x28,0xaa,0x8f,0xe2,0x85,0xdb,0x4a,0x5e,0x35,0x00,0x67,0xaa,0x76,0xac,0xb9,0x03,0xce};
    sm2_fp_from_bytes(a, a43);
    sm2_fp_from_bytes(b, b43);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c43, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a44[32] = {0x92,0x7e,0xf3,0xb4,0x50,0x9a,0xea,0xe9,0x10,0xc4,0xf4,0x19,0x1d,0x84,0x62,0xdf,0xf9,0x00,0x41,0xcf,0x39,0x43,0x5e,0xae,0x89,0x73,0x71,0x64,0x41,0xa6,0xf7,0xb2};
    static std::uint8_t b44[32] = {0x66,0x7a,0x6b,0x30,0x7a,0xf8,0x51,0xc9,0x7a,0x52,0xca,0x5a,0xdc,0xbb,0xbb,0xa6,0xeb,0x7e,0xea,0x54,0x7a,0xeb,0xb2,0x68,0x51,0x6e,0x83,0x16,0x15,0x24,0x5c,0x84};
    static std::uint8_t c44[32] = {0x8d,0x42,0x5b,0x56,0x01,0x7b,0x96,0x85,0xed,0x3a,0xf5,0x59,0x2f,0x7f,0x31,0xc2,0x95,0x4b,0x33,0x9e,0x61,0xe3,0x34,0xef,0x71,0xb3,0x7d,0xe3,0x1b,0x3c,0x11,0x5b};
    sm2_fp_from_bytes(a, a44);
    sm2_fp_from_bytes(b, b44);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c44, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a45[32] = {0x46,0x18,0xcb,0x94,0xce,0x80,0x7b,0x4d,0xcd,0xc3,0xf4,0xad,0xb2,0x3f,0x8e,0xa0,0x43,0xea,0x64,0xbe,0xd8,0xee,0x68,0x0c,0xe7,0xff,0xd0,0x84,0x39,0x35,0x99,0x8d};
    static std::uint8_t b45[32] = {0x7c,0x0d,0xd0,0xe0,0xe0,0x1f,0x96,0xca,0xe3,0xa3,0xd8,0x5b,0xff,0xaa,0x8e,0x22,0xd7,0xd7,0xd4,0x1c,0xd3,0x6e,0x02,0x21,0x1a,0x29,0x78,0xed,0x0e,0x24,0xe0,0x19};
    static std::uint8_t c45[32] = {0x96,0x36,0x38,0x96,0x0b,0x97,0x44,0xa3,0x21,0x08,0x10,0x41,0x67,0x8e,0x04,0x2c,0x92,0x8d,0x29,0x76,0xb6,0x2a,0xb7,0xf2,0x07,0x91,0x5e,0x5e,0xae,0x2c,0x12,0x7c};
    sm2_fp_from_bytes(a, a45);
    sm2_fp_from_bytes(b, b45);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c45, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a46[32] = {0xcc,0x60,0xe6,0xc1,0x0a,0x6b,0x50,0x6d,0x7c,0x9e,0x6e,0x31,0x0d,0x85,0x6e,0x48,0x97,0x8f,0x59,0xf7,0x9b,0xba,0x99,0xc7,0xab,0x11,0xda,0x79,0x3d,0xcb,0x12,0x80};
    static std::uint8_t b46[32] = {0xcc,0xa7,0xc3,0x5b,0x39,0xc9,0x9c,0x9c,0xec,0xe6,0x6a,0x19,0x09,0xfe,0xd1,0xd1,0x07,0x4a,0x1c,0x5f,0x10,0x66,0x5b,0xda,0xb2,0xe5,0x90,0xad,0x05,0xb7,0x6c,0x93};
    static std::uint8_t c46[32] = {0x39,0x9b,0x9e,0x85,0xd8,0x4d,0xbb,0xd8,0x6f,0xf3,0x2e,0x2a,0x9d,0xc1,0x35,0x7c,0x78,0x39,0xfe,0xc2,0x5d,0x0e,0x29,0x46,0x87,0x0e,0x17,0xa5,0xb7,0xe0,0xf7,0x03};
    sm2_fp_from_bytes(a, a46);
    sm2_fp_from_bytes(b, b46);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c46, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a47[32] = {0xed,0x58,0xdf,0xbf,0xb1,0x46,0x73,0xdd,0xad,0xda,0xd7,0xac,0xb8,0x02,0xde,0x46,0xf8,0x2f,0x90,0x48,0xa9,0x11,0xcd,0x66,0x18,0x1f,0x56,0xd8,0x2e,0x2f,0xa9,0x24};
    static std::uint8_t b47[32] = {0xaa,0xe2,0x05,0x8c,0xa7,0x3c,0xac,0xa1,0x90,0xac,0x28,0xce,0xed,0x02,0x83,0xf1,0x17,0x3e,0xda,0xda,0xcf,0x7d,0x97,0xf3,0x91,0x1b,0x16,0x6a,0xdf,0x80,0x49,0x65};
    static std::uint8_t c47[32] = {0x84,0x65,0xec,0x61,0x85,0xcb,0x34,0x7c,0xda,0xd5,0x86,0xd0,0x92,0x4e,0xf3,0x1f,0xb5,0x72,0xd8,0x35,0x11,0x84,0x45,0x50,0xc4,0x1a,0xb4,0x48,0x8b,0x80,0x04,0xf5};
    sm2_fp_from_bytes(a, a47);
    sm2_fp_from_bytes(b, b47);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c47, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a48[32] = {0x76,0x1d,0xe3,0x54,0xba,0xba,0x66,0x6c,0x8a,0xe2,0x30,0x00,0x69,0xb9,0x5d,0xdf,0xc4,0xd0,0x30,0x0a,0x20,0x45,0xee,0x6a,0xf7,0xde,0xbe,0x26,0x6f,0xc8,0x51,0xe3};
    static std::uint8_t b48[32] = {0xb6,0x2f,0xf1,0xf3,0x41,0x7e,0x4c,0x4d,0x29,0x5d,0xfa,0x3a,0xf8,0x7c,0x66,0xd2,0x45,0xca,0xcb,0x36,0x01,0xa8,0x67,0xd4,0x46,0xe5,0x0d,0xcb,0xe2,0x34,0x9d,0x3e};
    static std::uint8_t c48[32] = {0xe0,0xce,0x07,0x19,0xa3,0xae,0x1f,0x77,0x08,0xc6,0xe0,0x8d,0xca,0x95,0x0e,0x40,0x5e,0x31,0x20,0xb8,0x03,0x85,0x69,0x9e,0x7c,0x4e,0x64,0x2d,0xb3,0xf3,0x85,0xe0};
    sm2_fp_from_bytes(a, a48);
    sm2_fp_from_bytes(b, b48);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c48, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a49[32] = {0x09,0x66,0x64,0xe7,0x1e,0x4c,0xaa,0x74,0x34,0x06,0xe6,0xae,0x09,0x53,0x9d,0x57,0x25,0xdc,0x3a,0x2e,0x82,0xd0,0xc8,0x86,0xdd,0x38,0xcf,0x4e,0x9f,0x9f,0xa6,0x25};
    static std::uint8_t b49[32] = {0x09,0x94,0xe4,0x55,0xa0,0x73,0xf0,0x20,0x0e,0xd7,0x9e,0xe9,0x43,0x8b,0x85,0x9d,0x2b,0x32,0xe1,0xe1,0x6d,0x2e,0x11,0x20,0x5e,0xb8,0xb4,0x8d,0x31,0x36,0xaf,0x06};
    static std::uint8_t c49[32] = {0x85,0xf5,0xbf,0xef,0x1e,0x00,0xf9,0x91,0xfa,0x0a,0x30,0xb3,0xd2,0xe2,0x9c,0xca,0xa0,0x19,0x63,0x52,0xf9,0x3c,0x4c,0x67,0xd3,0x9a,0x97,0x88,0xb7,0x2f,0xb4,0x42};
    sm2_fp_from_bytes(a, a49);
    sm2_fp_from_bytes(b, b49);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c49, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a50[32] = {0x55,0xfd,0x96,0x65,0x74,0x71,0x9a,0x75,0xc4,0x2b,0xc1,0x8b,0xe0,0xfe,0xf3,0x21,0xa7,0xb7,0x39,0x18,0x6e,0x75,0x68,0x7f,0xf6,0x1b,0x9a,0xc2,0x47,0x32,0x56,0xcc};
    static std::uint8_t b50[32] = {0x55,0x32,0x98,0x54,0x39,0x03,0x8e,0x6b,0x1b,0x55,0xa2,0xd8,0xb0,0x1f,0x4c,0xd6,0xa3,0xe6,0x0f,0x34,0x4f,0x80,0x9a,0x59,0x65,0x3a,0xca,0xe2,0x09,0xb7,0x25,0x27};
    static std::uint8_t c50[32] = {0x02,0x10,0x45,0x59,0x5a,0x58,0xdf,0x4e,0x7d,0x8a,0xf0,0x7c,0x9c,0x1d,0x90,0xce,0xb9,0x24,0x84,0xc9,0x51,0xa6,0x03,0x89,0x73,0xcf,0x47,0xda,0x28,0x58,0x0c,0xd6};
    sm2_fp_from_bytes(a, a50);
    sm2_fp_from_bytes(b, b50);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c50, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a51[32] = {0x1a,0xe1,0xc6,0x77,0x5f,0xb2,0xb4,0x0b,0x7d,0x83,0x19,0xc7,0x49,0x73,0x77,0x2c,0xc9,0xf8,0x8e,0xf1,0x4b,0xa6,0x2e,0xf4,0x60,0x43,0x00,0x6e,0x0f,0xa2,0xda,0x14};
    static std::uint8_t b51[32] = {0x99,0x82,0xc9,0x11,0x26,0x2d,0xc2,0x50,0x02,0x3b,0x39,0xa8,0x44,0x33,0xdd,0x24,0x6e,0x0c,0xa2,0xa8,0x6b,0xbc,0xc8,0x1c,0xa8,0x21,0x07,0x7d,0x40,0xd6,0x8a,0x21};
    static std::uint8_t c51[32] = {0x78,0x59,0xd1,0xea,0xa9,0x38,0xb3,0x04,0x6c,0x35,0x10,0x8e,0xe9,0x8e,0xc0,0x14,0xdd,0xb0,0x0d,0xf4,0x40,0x5c,0xf2,0xa3,0xc4,0x8d,0x22,0x46,0x31,0x13,0x94,0xb0};
    sm2_fp_from_bytes(a, a51);
    sm2_fp_from_bytes(b, b51);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c51, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a52[32] = {0xeb,0x56,0x0d,0x04,0x2f,0x72,0x27,0x37,0x7e,0x95,0xc2,0xbe,0xe5,0x51,0x9c,0xba,0x54,0xd2,0x76,0x90,0x67,0x29,0x31,0x6e,0xc4,0x09,0x35,0xa6,0xf4,0x19,0xb6,0x85};
    static std::uint8_t b52[32] = {0x8c,0x0a,0x61,0x96,0x11,0xf9,0xb0,0x26,0x6b,0xe4,0xad,0x2e,0x8a,0x2e,0x86,0xc3,0x4e,0x2d,0x86,0xbc,0x7d,0x6c,0xd0,0xe2,0x61,0x21,0x89,0xb9,0xfa,0xc8,0x60,0x00};
    static std::uint8_t c52[32] = {0x13,0x4d,0x42,0xa8,0xdc,0x1d,0xdf,0x39,0xea,0x4d,0xb4,0x15,0xc2,0x56,0x07,0x03,0x54,0x9f,0xa5,0x5c,0xd3,0xd7,0x2c,0x0b,0x6c,0xcf,0x68,0x11,0xf4,0x2d,0xa0,0xa4};
    sm2_fp_from_bytes(a, a52);
    sm2_fp_from_bytes(b, b52);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c52, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a53[32] = {0xc9,0x3f,0x42,0xaf,0x63,0x8e,0x75,0xfe,0x57,0x7d,0x94,0x7c,0xa2,0xb3,0x4e,0x39,0x9f,0x33,0x9f,0x24,0xb5,0x68,0xdb,0x34,0x95,0x11,0xd1,0x44,0x68,0x2f,0xad,0x4e};
    static std::uint8_t b53[32] = {0xf2,0x2e,0x5e,0x3a,0x4c,0xea,0x37,0xe4,0x7c,0x60,0x31,0xd9,0x76,0x9b,0x07,0x7f,0x3f,0xa6,0x54,0x66,0xa7,0x96,0x33,0xcc,0x46,0x32,0x6c,0x9c,0x0d,0xab,0xab,0x14};
    static std::uint8_t c53[32] = {0x1b,0xba,0x8e,0x65,0xc4,0x50,0xd5,0x71,0x8a,0xed,0xb1,0x47,0x75,0x16,0x4a,0xb5,0x13,0x31,0xc8,0x0b,0x30,0xbd,0xac,0x7f,0xbf,0x1b,0x89,0x4d,0x3a,0xca,0x42,0x8a};
    sm2_fp_from_bytes(a, a53);
    sm2_fp_from_bytes(b, b53);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c53, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a54[32] = {0x21,0xf2,0x2f,0x2e,0x1d,0x56,0x55,0x25,0xb6,0xdd,0xa4,0x48,0x35,0xfc,0x89,0x73,0xa1,0x2d,0x07,0x6e,0xff,0xfa,0xa8,0xc1,0x89,0xf3,0x11,0x01,0x7c,0x86,0xbe,0x96};
    static std::uint8_t b54[32] = {0xea,0x87,0x4d,0x82,0x6d,0xe9,0xa3,0x05,0x26,0xd0,0xef,0x79,0x56,0x60,0xe3,0xbf,0xfc,0xb4,0x9a,0x9d,0x1d,0x03,0x3e,0x4a,0xe9,0x1f,0x1e,0xc6,0xef,0xfe,0xd5,0xe0};
    static std::uint8_t c54[32] = {0xd9,0xb8,0x9d,0x6a,0xd6,0x6a,0x44,0x2e,0x08,0x99,0x2e,0x83,0xd1,0x23,0xb0,0x40,0xb9,0x58,0xfa,0x06,0x43,0xa9,0xc1,0xe5,0x00,0x09,0x91,0xfc,0x98,0xe3,0xd2,0xe6};
    sm2_fp_from_bytes(a, a54);
    sm2_fp_from_bytes(b, b54);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c54, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a55[32] = {0x4a,0xc5,0x72,0x91,0x9b,0x6c,0x05,0x2e,0xe0,0xde,0x96,0xab,0x70,0x2b,0x36,0x92,0x1d,0xa4,0xab,0x09,0x9d,0x77,0x7f,0x9b,0x88,0xdb,0x01,0x39,0x60,0xd8,0x35,0xd0};
    static std::uint8_t b55[32] = {0xe4,0xeb,0x36,0x65,0xda,0xa3,0x18,0x27,0xfc,0xb4,0x84,0xe8,0x84,0x2f,0xab,0x2a,0x1a,0x20,0xf7,0x52,0x07,0x6e,0xe0,0xf5,0xd5,0x8a,0x76,0xca,0x10,0x94,0x2c,0xec};
    static std::uint8_t c55[32] = {0xba,0x92,0xfc,0x52,0xc9,0x45,0x1f,0xb2,0x51,0x11,0x62,0x73,0xba,0x3d,0x92,0x5e,0x96,0x3d,0xdd,0x33,0x08,0x89,0x9f,0xc2,0x87,0x2a,0xdd,0xef,0xc0,0xf4,0x9e,0xad};
    sm2_fp_from_bytes(a, a55);
    sm2_fp_from_bytes(b, b55);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c55, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a56[32] = {0x34,0x04,0x6e,0x77,0x2f,0x69,0x2f,0xfb,0xc7,0x9c,0x9c,0x28,0x31,0x24,0xcd,0x4e,0xee,0x60,0xa3,0x71,0x59,0x6a,0x16,0xd0,0xf1,0xb7,0x2e,0x5c,0x37,0x76,0x7b,0x47};
    static std::uint8_t b56[32] = {0x65,0x3b,0x81,0x1c,0x44,0xc6,0xed,0xe5,0x74,0x60,0x30,0xd4,0x6e,0x10,0x07,0x8f,0xa7,0x5f,0xe7,0x99,0x59,0x5c,0xa8,0x7f,0xe0,0x61,0x4f,0xa1,0xd1,0xd9,0x4e,0xfa};
    static std::uint8_t c56[32] = {0x39,0x9b,0xc3,0x26,0x75,0x1f,0x07,0x4e,0xaa,0xbf,0xb7,0x74,0xc0,0xf8,0x69,0x24,0xcc,0x2d,0x08,0x56,0x0f,0xce,0x20,0x8e,0x5e,0xa6,0x44,0x95,0xd1,0x15,0x0b,0x71};
    sm2_fp_from_bytes(a, a56);
    sm2_fp_from_bytes(b, b56);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c56, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a57[32] = {0x87,0x0d,0x32,0x28,0xbf,0xd5,0x2c,0xd5,0x47,0x8b,0x74,0x7a,0xa3,0xb8,0xad,0x56,0xff,0x3b,0xf4,0x25,0xdb,0x3b,0xa8,0x7e,0x57,0x41,0x52,0xda,0x49,0xd9,0x3a,0x0f};
    static std::uint8_t b57[32] = {0x90,0x25,0x82,0x10,0x94,0x07,0x4d,0xd2,0x8f,0xc9,0xb4,0x1a,0xb3,0xd9,0xb5,0x51,0x9f,0x26,0xf6,0x30,0x13,0xa6,0xa8,0xc1,0x5c,0x8c,0x50,0x73,0xb0,0x31,0x3b,0x9f};
    static std::uint8_t c57[32] = {0x7d,0xdb,0x53,0x17,0x18,0x9f,0x62,0x5e,0x8b,0x17,0x7d,0x03,0xbf,0x40,0x62,0xf4,0x00,0x29,0xea,0x42,0x40,0x56,0x21,0x4d,0x44,0x79,0x6d,0xd5,0x52,0xd4,0x47,0xc8};
    sm2_fp_from_bytes(a, a57);
    sm2_fp_from_bytes(b, b57);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c57, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a58[32] = {0xa9,0x86,0xc4,0xb7,0x02,0x3e,0x52,0xca,0x30,0x3f,0x10,0x18,0x57,0x4d,0x73,0xfc,0xd4,0x24,0x41,0x47,0xc2,0x9d,0x7a,0xed,0x11,0x5c,0xec,0xea,0xf1,0xf9,0x57,0xf9};
    static std::uint8_t b58[32] = {0x20,0x11,0x47,0xa6,0xfb,0xcd,0x4a,0x32,0x01,0x01,0x3d,0x0a,0xe5,0x52,0xab,0x8e,0x22,0xd9,0xe8,0x25,0xaf,0x8c,0xb5,0xba,0xe1,0x27,0x68,0x61,0x90,0xa4,0x36,0x86};
    static std::uint8_t c58[32] = {0xd3,0x21,0x85,0x05,0x88,0xc8,0xec,0xc6,0x2d,0xba,0x82,0x34,0x25,0x7e,0x06,0x64,0x0c,0xea,0x19,0xf4,0x5d,0xd0,0xd8,0xb2,0x40,0x00,0x72,0x3e,0x72,0xb7,0x21,0xef};
    sm2_fp_from_bytes(a, a58);
    sm2_fp_from_bytes(b, b58);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c58, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a59[32] = {0xaa,0x18,0x0b,0xc2,0xaf,0x39,0x0a,0xdd,0xb5,0x8c,0x2c,0xd0,0xa6,0xfb,0x38,0x5a,0x31,0xdc,0x52,0xe9,0xd8,0x35,0x22,0x30,0x6e,0x19,0x93,0x08,0x3f,0x8e,0x87,0x4e};
    static std::uint8_t b59[32] = {0xa9,0x9a,0xba,0x9f,0xde,0x9f,0x71,0xe5,0xd4,0x8a,0x5b,0x3a,0xf7,0x6b,0x4a,0x3b,0x60,0x80,0x53,0x1a,0xf1,0x37,0x56,0xe0,0x7e,0xb1,0xd3,0x81,0x1b,0xe6,0x74,0x4b};
    static std::uint8_t c59[32] = {0xa6,0x0f,0xbb,0x51,0x05,0x75,0x8d,0x80,0xbd,0xc5,0xbb,0x4e,0x02,0x3a,0x6e,0xfb,0xb8,0x7b,0x48,0x5d,0x4a,0x9d,0x85,0x3a,0xe0,0x0f,0x95,0x50,0x75,0x58,0x8c,0x0a};
    sm2_fp_from_bytes(a, a59);
    sm2_fp_from_bytes(b, b59);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c59, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a60[32] = {0x57,0x0c,0x9a,0x1e,0x64,0x4d,0x6e,0xd0,0xcf,0xcb,0x75,0x76,0x20,0xe9,0x76,0x12,0xcc,0x8a,0xd6,0x6c,0x62,0x23,0x64,0x2d,0xcb,0xdf,0x7b,0x44,0xa2,0xfd,0x2e,0x6c};
    static std::uint8_t b60[32] = {0x92,0x28,0x5a,0xd9,0x7d,0x45,0x18,0xb9,0x1a,0xd0,0xdf,0xb6,0x02,0x06,0xe4,0xe5,0x69,0x4f,0x69,0x90,0x94,0x5d,0x40,0x53,0x8e,0xf8,0x3f,0x1a,0x74,0xd3,0x84,0xf7};
    static std::uint8_t c60[32] = {0xc4,0xd6,0xde,0x74,0xe4,0x34,0xa0,0x07,0x78,0xf1,0x2b,0x80,0x93,0xe7,0x2c,0x11,0x20,0xba,0x3c,0xdb,0x14,0xe4,0xb8,0xba,0xc4,0x8d,0x86,0xba,0xf2,0x3a,0xc6,0x3d};
    sm2_fp_from_bytes(a, a60);
    sm2_fp_from_bytes(b, b60);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c60, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a61[32] = {0xdc,0x1d,0x74,0x97,0x8a,0x58,0x5e,0xa7,0x14,0xd8,0x0b,0xc8,0x1a,0x4f,0xaa,0x66,0xb4,0xa5,0x39,0x7d,0xe9,0xf9,0xf3,0x4c,0xdf,0xe9,0x1d,0xf7,0x43,0x7d,0xa3,0x63};
    static std::uint8_t b61[32] = {0x01,0x68,0xc8,0x07,0x5c,0x69,0x66,0xfe,0x70,0xca,0x3a,0x45,0xca,0x16,0xeb,0xaf,0x96,0xf6,0x6f,0x96,0x53,0x28,0x7f,0xa4,0x91,0x14,0x32,0xc9,0x05,0x58,0x75,0x20};
    static std::uint8_t c61[32] = {0x4e,0x7d,0x1e,0xb8,0xc7,0x17,0xc0,0xc7,0xeb,0xc5,0x05,0x64,0x94,0x6b,0x3a,0xb4,0x7c,0x62,0x56,0x83,0xc4,0x1b,0x84,0x12,0x40,0x1c,0xa3,0xec,0x3c,0x6c,0x58,0x17};
    sm2_fp_from_bytes(a, a61);
    sm2_fp_from_bytes(b, b61);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c61, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a62[32] = {0xa5,0xc4,0xbb,0x22,0xc1,0x0a,0xc9,0xde,0xac,0x38,0xb9,0x1d,0xbd,0x80,0xc5,0x53,0x31,0x1c,0xaa,0xea,0x9c,0x86,0x76,0xd6,0x28,0xaa,0x51,0x41,0xf2,0xaa,0x0f,0xab};
    static std::uint8_t b62[32] = {0x87,0x35,0xec,0xb6,0x1b,0x5a,0x01,0xd0,0xc6,0x57,0x63,0x9e,0xcb,0x50,0xbd,0x80,0x66,0x55,0x67,0xae,0x39,0xc5,0x4d,0x3e,0x4d,0x67,0x3e,0x18,0x71,0xca,0x7c,0x40};
    static std::uint8_t c62[32] = {0x48,0xfa,0x06,0xf4,0xc0,0x40,0x8d,0x7a,0xb0,0xb7,0xfc,0xd0,0x6d,0xec,0x46,0xdd,0x3e,0x83,0xa1,0xfe,0xf4,0x90,0x85,0xee,0x65,0xfb,0xb0,0x9c,0xda,0x1b,0x9f,0x91};
    sm2_fp_from_bytes(a, a62);
    sm2_fp_from_bytes(b, b62);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c62, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a63[32] = {0xc2,0x0e,0xe0,0x47,0x8c,0xe4,0x3c,0xea,0x45,0xa7,0xe7,0xc3,0xfa,0x0d,0x09,0xdd,0xef,0x2a,0xdc,0xe5,0xbe,0xfa,0x7e,0x14,0xbd,0xd2,0x58,0xfe,0x8c,0x20,0x46,0x2f};
    static std::uint8_t b63[32] = {0xda,0x74,0x5c,0xdc,0xce,0x5a,0xea,0xb7,0xe5,0xf9,0x2b,0x00,0xd9,0xee,0x4e,0x32,0x3f,0xe9,0x23,0xd2,0x28,0x67,0xdc,0x31,0x8d,0xb9,0xc1,0x7f,0xf4,0x05,0x3e,0x2a};
    static std::uint8_t c63[32] = {0x68,0xf6,0x4f,0x85,0x51,0x9c,0x9d,0x24,0x19,0x49,0x00,0xe6,0xaa,0xe0,0xe4,0x98,0xf7,0xb8,0xef,0xe6,0xa0,0x4a,0xc7,0xa6,0x13,0xd5,0xc4,0xba,0xf5,0x9a,0x5e,0xe7};
    sm2_fp_from_bytes(a, a63);
    sm2_fp_from_bytes(b, b63);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c63, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a64[32] = {0xd0,0x28,0x62,0xc9,0x01,0xf3,0x54,0x9e,0x52,0x9d,0x77,0x67,0x6a,0xfc,0x04,0xf6,0x08,0x72,0xb5,0x63,0x09,0x18,0x9d,0x8b,0x45,0x7d,0x7a,0x14,0x57,0x09,0xeb,0x0e};
    static std::uint8_t b64[32] = {0x1b,0xcd,0x81,0xb5,0x7e,0xa7,0x12,0x40,0x04,0x7a,0x27,0xc8,0x79,0x29,0x0c,0x7e,0xb7,0x80,0x48,0x84,0xd5,0x66,0x22,0xc3,0x42,0x09,0xa8,0x6f,0x43,0x35,0xb8,0x39};
    static std::uint8_t c64[32] = {0xf7,0xb7,0x19,0x13,0xe0,0xb8,0xd4,0x4f,0xac,0x50,0x7b,0x1a,0xd3,0xf4,0xc0,0x24,0x52,0xac,0x83,0xff,0xb1,0xf7,0x72,0xfb,0xb2,0x75,0x94,0x0a,0x1d,0xe8,0xcd,0x33};
    sm2_fp_from_bytes(a, a64);
    sm2_fp_from_bytes(b, b64);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c64, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a65[32] = {0xb9,0xe8,0xe2,0x7c,0xf7,0x05,0x06,0xd8,0x31,0x89,0xcb,0x03,0x64,0xd6,0x7e,0xd9,0xe3,0xb5,0x19,0xa1,0x45,0xa2,0x14,0x53,0xd1,0x95,0x79,0xc1,0x75,0xcc,0x93,0x55};
    static std::uint8_t b65[32] = {0xb1,0x52,0x27,0x07,0x6f,0xc1,0xe9,0x7f,0x7e,0xb6,0xcd,0xbd,0x5f,0x28,0xaa,0x43,0x81,0xcd,0x8a,0x3d,0xdc,0xf8,0x03,0x1a,0x89,0x73,0x9b,0x76,0x96,0x43,0x3b,0x7e};
    static std::uint8_t c65[32] = {0x74,0x65,0x86,0xde,0x9f,0x30,0x27,0xf7,0x0c,0x01,0x80,0xe3,0xe6,0x44,0x59,0x72,0xd6,0x3f,0xa0,0xc4,0x24,0x38,0xd1,0xb8,0x7c,0x41,0xcc,0xf8,0xe5,0x4c,0x52,0x39};
    sm2_fp_from_bytes(a, a65);
    sm2_fp_from_bytes(b, b65);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c65, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a66[32] = {0x72,0xa2,0xdb,0x7f,0x01,0xb6,0x87,0x13,0x75,0xec,0xb2,0xd3,0x9b,0xf5,0x56,0x4d,0xdc,0x59,0xe0,0x89,0xc9,0x0a,0x1d,0xdc,0xb0,0x2d,0x38,0xf0,0x5d,0x01,0x3c,0x61};
    static std::uint8_t b66[32] = {0x97,0x35,0x13,0x3d,0x00,0xb3,0xeb,0xb1,0x95,0x4c,0xb5,0x55,0xae,0x94,0x0b,0x17,0x48,0x30,0x63,0x62,0x44,0xe6,0x06,0xf0,0xc6,0x72,0xf5,0xe3,0x38,0xd9,0xfc,0x17};
    static std::uint8_t c66[32] = {0xf4,0x6c,0xd7,0xdb,0x8c,0xb6,0x8c,0x08,0x67,0xc0,0x32,0x0b,0xe5,0xcb,0x91,0xd4,0x1f,0xc0,0x12,0x45,0x94,0xdf,0xf4,0x13,0x99,0xde,0x90,0x29,0x6f,0xd1,0x58,0xa9};
    sm2_fp_from_bytes(a, a66);
    sm2_fp_from_bytes(b, b66);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c66, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a67[32] = {0xf7,0x95,0x4a,0xfa,0x2a,0x42,0x00,0x59,0xa1,0x10,0x6f,0xa5,0xec,0xd1,0xa2,0x23,0x39,0xf3,0x08,0x87,0x73,0x70,0xf2,0xa9,0x00,0xa1,0x5e,0xa7,0xb0,0x73,0x70,0x33};
    static std::uint8_t b67[32] = {0x2c,0x57,0x74,0x74,0x77,0x9e,0x7f,0x1c,0xc0,0x18,0x62,0xb2,0x2f,0x4c,0x3e,0x4e,0x6e,0x4f,0x37,0xd1,0x64,0x33,0x06,0xc9,0x4b,0x74,0xc0,0xa4,0x16,0xba,0x59,0xd1};
    static std::uint8_t c67[32] = {0x4c,0x4d,0x18,0xeb,0xa6,0x59,0x9c,0x7a,0xc7,0xe5,0x67,0x36,0xeb,0xc3,0xc2,0x45,0x85,0x7e,0x1a,0x8a,0xf0,0x83,0x3b,0xd1,0xe5,0x3d,0x2c,0x24,0xef,0x39,0x33,0x63};
    sm2_fp_from_bytes(a, a67);
    sm2_fp_from_bytes(b, b67);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c67, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a68[32] = {0x06,0x3f,0x3f,0x38,0x23,0xef,0x32,0x5b,0xd7,0xe1,0xe4,0x6a,0x1c,0xee,0x95,0x40,0x5a,0x26,0x4a,0x8a,0xbe,0x0f,0x58,0xb3,0x82,0x98,0xd4,0xd3,0xb5,0x87,0xe3,0x24};
    static std::uint8_t b68[32] = {0x1d,0x36,0x17,0x5d,0x45,0x1d,0x70,0xd6,0x0b,0xef,0x98,0x0e,0xb0,0xb5,0xee,0xa1,0x7b,0xfc,0xb6,0x09,0x99,0x02,0x8d,0xd3,0x3f,0x1a,0xbb,0x16,0x88,0xa9,0x3e,0xfe};
    static std::uint8_t c68[32] = {0x9a,0x71,0xd1,0x84,0x29,0xe6,0xcb,0xfe,0x10,0xad,0x8c,0x7e,0x8f,0x14,0xd1,0xb1,0x05,0x00,0x68,0xf0,0x5f,0xbd,0x9a,0x9b,0xaa,0xb7,0xaa,0xf9,0xe1,0xf8,0xb6,0x54};
    sm2_fp_from_bytes(a, a68);
    sm2_fp_from_bytes(b, b68);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c68, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a69[32] = {0xef,0x27,0x9f,0xd8,0x5c,0x00,0x26,0xcd,0x83,0xb8,0x9b,0x37,0x23,0x0b,0x54,0x45,0xed,0x2e,0x47,0xc3,0xfb,0x2c,0x66,0xef,0xe2,0xa6,0xfe,0xb3,0x00,0x31,0x9c,0x60};
    static std::uint8_t b69[32] = {0x1d,0x12,0xb8,0x9b,0x49,0xe4,0x97,0xda,0x28,0x1a,0x25,0x63,0xb6,0x19,0xec,0x59,0x87,0xb4,0xa0,0x5b,0x17,0x48,0x81,0xfc,0x00,0xf1,0x42,0xd8,0xdf,0x34,0x67,0x01};
    static std::uint8_t c69[32] = {0xa5,0x36,0x5f,0x26,0xd7,0xc2,0x00,0x8e,0x40,0x4e,0x9c,0x6f,0xce,0xa8,0x32,0x1a,0x14,0x2d,0x42,0x87,0x45,0x90,0xf4,0xf3,0x17,0x13,0x14,0x59,0xd1,0x65,0xed,0x94};
    sm2_fp_from_bytes(a, a69);
    sm2_fp_from_bytes(b, b69);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c69, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a70[32] = {0xf8,0xa1,0xb6,0xf7,0x88,0xca,0x31,0x5b,0x87,0x49,0xd4,0x2b,0xcc,0x04,0xe4,0xe5,0xc7,0x56,0x76,0x84,0x33,0x82,0xa8,0x6e,0x21,0x31,0x70,0x2c,0x7a,0xeb,0x12,0x9d};
    static std::uint8_t b70[32] = {0x84,0x19,0xd1,0x85,0xdd,0x64,0xa6,0x6d,0x3a,0xbb,0x3f,0x33,0x1f,0x3d,0xb9,0xbb,0xb8,0xd8,0x0a,0x6c,0x6f,0xfb,0x49,0x5e,0x12,0xdb,0x9c,0x7f,0xfd,0x79,0xae,0x99};
    static std::uint8_t c70[32] = {0x01,0x98,0x28,0x61,0xfb,0xe9,0x70,0x23,0x30,0x76,0x42,0x01,0x79,0x4c,0xc8,0xe4,0x2f,0x8a,0x3d,0xfa,0x54,0xb9,0x66,0x4c,0x25,0xe4,0x91,0x01,0xaa,0x15,0x1f,0xb8};
    sm2_fp_from_bytes(a, a70);
    sm2_fp_from_bytes(b, b70);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c70, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a71[32] = {0xef,0x12,0xb0,0x0a,0x80,0x78,0x14,0x24,0x4c,0xd5,0xab,0x85,0xa7,0xa3,0x1d,0x00,0x80,0x22,0x32,0xe9,0x6d,0x68,0x5c,0xc0,0x91,0x94,0x1b,0x21,0x44,0x6b,0x9a,0x38};
    static std::uint8_t b71[32] = {0x1a,0xe3,0x13,0xe6,0x42,0x9a,0x24,0x8a,0x7d,0x5e,0x8a,0x31,0x7a,0x36,0xed,0xf1,0xed,0xa1,0x76,0xb8,0x0e,0xa0,0x1c,0x75,0xa3,0x74,0x20,0x72,0xb8,0x9f,0x23,0xce};
    static std::uint8_t c71[32] = {0x55,0xbf,0xb9,0x6d,0xe6,0x85,0xe1,0x05,0x87,0x75,0x6f,0x55,0x63,0xd4,0x61,0xb8,0xb3,0x4b,0xa7,0x85,0xdf,0x1e,0x3f,0x21,0x15,0xfa,0xbf,0x7e,0x85,0xe8,0xf8,0x87};
    sm2_fp_from_bytes(a, a71);
    sm2_fp_from_bytes(b, b71);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c71, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a72[32] = {0x14,0xb8,0x01,0x90,0x3e,0xc0,0x29,0x00,0x07,0xb2,0x74,0xf7,0xd8,0x0b,0x3d,0x8f,0xde,0x75,0xe2,0x33,0x8d,0x6c,0x27,0x6b,0x02,0x91,0xf4,0xf3,0xe8,0xd7,0x6d,0x6c};
    static std::uint8_t b72[32] = {0x2e,0x7b,0xdf,0x31,0x89,0xad,0x6e,0xf1,0x35,0xa3,0x51,0x86,0x17,0xcc,0x93,0x72,0x6e,0x52,0xe2,0xdf,0x93,0x86,0x5d,0xab,0x22,0x1b,0xb2,0x6c,0x40,0x6b,0x02,0x60};
    static std::uint8_t c72[32] = {0x23,0x7f,0x70,0x56,0x19,0xb1,0xbd,0xb2,0xc0,0xf7,0x70,0x36,0x6c,0xb7,0x39,0xe7,0x91,0xe1,0xbb,0xa4,0x1d,0x5c,0x31,0x1a,0x59,0xee,0xae,0xb5,0xd9,0xfe,0x4c,0xe7};
    sm2_fp_from_bytes(a, a72);
    sm2_fp_from_bytes(b, b72);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c72, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a73[32] = {0x7e,0x7d,0xc9,0x5d,0x82,0x7d,0xc4,0x32,0x2e,0x44,0xba,0xa1,0xbb,0xb9,0x6e,0xb1,0xa8,0xd7,0x6e,0xb7,0xe6,0xaa,0xb0,0xde,0x47,0x37,0x66,0x07,0xa2,0x3c,0x78,0x54};
    static std::uint8_t b73[32] = {0x62,0x77,0x6e,0x2d,0x0b,0x14,0xd3,0x71,0x6c,0x1e,0xae,0xfc,0xab,0x58,0xc6,0x83,0xc0,0x72,0x96,0xb5,0x86,0x71,0x83,0x63,0x00,0x3e,0xfe,0x36,0xe0,0xaa,0x24,0x9d};
    static std::uint8_t c73[32] = {0xb8,0x92,0xe2,0xf3,0xc3,0xdd,0xe3,0x20,0x88,0x5f,0x58,0xb8,0x26,0x52,0x32,0xa9,0x75,0xe0,0x34,0x85,0xec,0x24,0xb0,0x31,0xa0,0xae,0xfe,0xe3,0x56,0x60,0x95,0x4a};
    sm2_fp_from_bytes(a, a73);
    sm2_fp_from_bytes(b, b73);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c73, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a74[32] = {0xc8,0xb1,0x7f,0x4c,0x41,0x42,0x0b,0x53,0x7e,0x7a,0x84,0xce,0xf5,0xfc,0x03,0x25,0x0d,0xca,0x7f,0x87,0x46,0x33,0x4d,0xea,0x74,0x5d,0x2c,0x58,0xa4,0x36,0x77,0xf1};
    static std::uint8_t b74[32] = {0x99,0x3c,0x99,0xef,0xf4,0x39,0xf2,0xef,0x41,0xaa,0x3b,0xbc,0x8c,0x05,0x25,0x2b,0x80,0xc2,0xc6,0xec,0xb5,0xff,0xea,0x3e,0x06,0xe3,0x58,0x80,0x86,0xd7,0x6a,0x83};
    static std::uint8_t c74[32] = {0xbd,0x01,0x6e,0xe7,0x99,0x7f,0xf8,0x11,0xd4,0xa6,0x3c,0xdd,0xae,0x5d,0xb4,0xca,0xb6,0x77,0xc4,0xce,0x40,0x8f,0x6b,0x93,0x86,0x02,0x78,0x22,0x92,0x4f,0xcd,0x9a};
    sm2_fp_from_bytes(a, a74);
    sm2_fp_from_bytes(b, b74);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c74, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a75[32] = {0x77,0x6d,0x53,0xd8,0x74,0xf9,0x74,0xb7,0xef,0xe2,0x0e,0x16,0x0c,0x16,0x9d,0x97,0xdf,0x48,0x81,0x1a,0x30,0x7a,0x5a,0x29,0xa6,0x0b,0x78,0x21,0x8a,0x67,0x2a,0x5c};
    static std::uint8_t b75[32] = {0xea,0xed,0xa8,0xed,0x75,0x76,0xd7,0x0b,0x46,0x38,0x5f,0x4e,0xb4,0xd1,0x34,0x8a,0xa9,0x47,0xa4,0xe6,0xc7,0xb6,0x98,0x14,0xad,0xa5,0xfe,0xca,0xce,0x0e,0xab,0x18};
    static std::uint8_t c75[32] = {0xd3,0x9e,0x92,0xf1,0xfc,0x21,0x4f,0x24,0xeb,0xae,0xf6,0x6d,0x0b,0xec,0xcf,0x07,0x72,0x1b,0x11,0x9b,0x16,0x93,0xa9,0x7a,0x22,0x26,0xa5,0xb4,0x3d,0xbc,0xf1,0xab};
    sm2_fp_from_bytes(a, a75);
    sm2_fp_from_bytes(b, b75);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c75, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a76[32] = {0x0e,0x04,0x46,0x9b,0xab,0x9c,0xdf,0x60,0xe2,0x92,0x7e,0xb1,0x7a,0x4e,0x2a,0x75,0xc2,0x19,0x12,0xb2,0xbb,0x63,0x32,0x82,0xf9,0x24,0x86,0x88,0x3e,0xd1,0x5a,0x7d};
    static std::uint8_t b76[32] = {0xbf,0x15,0x4d,0xa3,0x26,0x49,0x1e,0xfa,0x7f,0x29,0x77,0x75,0x82,0xe9,0xdc,0xd7,0x55,0xca,0x96,0xaf,0x1d,0xfb,0x06,0x32,0x69,0xed,0x6f,0x5d,0xfa,0x3d,0xb9,0x02};
    static std::uint8_t c76[32] = {0x67,0x15,0x52,0xdf,0xbf,0x4a,0x22,0x45,0x64,0xa3,0x24,0x4a,0x49,0x4a,0x41,0xc4,0xb5,0xa5,0x25,0x7f,0x47,0x72,0xdf,0x0d,0xaf,0x43,0xcb,0xd0,0xaf,0x87,0xc1,0xca};
    sm2_fp_from_bytes(a, a76);
    sm2_fp_from_bytes(b, b76);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c76, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a77[32] = {0x5d,0x78,0x07,0x4c,0xc4,0xe4,0xf7,0x69,0x91,0x6d,0x73,0x74,0xfb,0xaf,0x06,0x23,0x31,0x1f,0xb3,0x43,0x83,0xb6,0x48,0x82,0xe5,0x81,0x01,0x99,0x15,0xea,0x8a,0xcf};
    static std::uint8_t b77[32] = {0xb6,0xf7,0xfa,0x65,0x6c,0xa7,0x93,0xa4,0x46,0x51,0x89,0x9a,0xe6,0x4c,0x02,0x6c,0xbf,0xa8,0x78,0x75,0xeb,0x6e,0xbe,0xc5,0x62,0xc5,0xb2,0x33,0x8b,0xac,0xeb,0x96};
    static std::uint8_t c77[32] = {0xfd,0x0b,0xc3,0xf0,0xb7,0x16,0xd9,0x6c,0x93,0xbb,0x0b,0x26,0xeb,0x48,0x96,0x3f,0x6a,0x8c,0x86,0x71,0xbc,0xfa,0x09,0xa0,0xaf,0x42,0xd6,0x35,0xea,0xf7,0xd8,0x65};
    sm2_fp_from_bytes(a, a77);
    sm2_fp_from_bytes(b, b77);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c77, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a78[32] = {0x08,0x1a,0x15,0x22,0xe0,0x50,0x7c,0x7c,0x38,0x1d,0x60,0xf0,0x88,0x95,0x5f,0xa3,0xb4,0x65,0xcd,0xaf,0x5e,0x12,0x58,0x8d,0x43,0x6e,0x4f,0x7a,0x77,0x3a,0x8e,0x32};
    static std::uint8_t b78[32] = {0x8b,0x27,0x91,0x91,0x1c,0x64,0x5a,0xa2,0x7d,0x05,0x79,0x20,0x80,0x0c,0xf1,0x50,0xad,0x6b,0xf0,0xbf,0x49,0xc0,0xb4,0xd4,0x5e,0x77,0xee,0x35,0x4a,0xea,0x1d,0xed};
    static std::uint8_t c78[32] = {0x53,0x90,0x4f,0x1c,0xf3,0xc9,0xde,0xff,0x72,0x36,0xa0,0x24,0x61,0x2f,0xa0,0x12,0xd9,0x5f,0x72,0x5f,0x53,0x24,0xa4,0xbc,0x4c,0xa9,0xd9,0x6c,0x0e,0x30,0xbb,0x99};
    sm2_fp_from_bytes(a, a78);
    sm2_fp_from_bytes(b, b78);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c78, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a79[32] = {0x84,0xf4,0xbe,0xf6,0x11,0xdf,0xb5,0x74,0x1a,0xf9,0x9a,0xa0,0x01,0xfa,0x30,0x74,0xa3,0x1b,0xa0,0x03,0x5a,0x5a,0xb4,0xbf,0x1e,0xac,0xf7,0x3e,0xdf,0xc6,0xf3,0xdf};
    static std::uint8_t b79[32] = {0x46,0xe9,0x86,0x0e,0xaf,0xdd,0x36,0x08,0xd2,0x82,0x3a,0xed,0x96,0x78,0xe7,0x9b,0x0e,0xa9,0x0b,0xff,0xdf,0x91,0xb0,0xe9,0x93,0xb7,0x58,0xf7,0xb5,0x24,0xe7,0xea};
    static std::uint8_t c79[32] = {0xc3,0xc5,0xf5,0xbe,0x5d,0x83,0x75,0xaf,0x0c,0x06,0x1d,0x9b,0xfb,0x05,0xa2,0x0e,0x72,0x9b,0xf7,0xbf,0x86,0x2f,0x62,0xa6,0x76,0xdc,0x4c,0x2a,0x12,0xcf,0x31,0xc7};
    sm2_fp_from_bytes(a, a79);
    sm2_fp_from_bytes(b, b79);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c79, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a80[32] = {0xd6,0x49,0x8d,0x60,0xa8,0xb8,0x44,0x0a,0x34,0x34,0x02,0xf4,0xc9,0x60,0x46,0xeb,0xc8,0x32,0x99,0xd0,0xf2,0x61,0x61,0xc2,0x30,0x3f,0x3a,0xc4,0x2b,0x21,0x3b,0x0d};
    static std::uint8_t b80[32] = {0x7e,0x9c,0xab,0x86,0xe6,0x91,0x0d,0xcd,0xc8,0x59,0x2c,0x1d,0xf6,0x51,0xf6,0xb5,0x91,0xcd,0x95,0xfa,0x68,0xad,0x2a,0x51,0xff,0xcb,0x51,0xcb,0x07,0x2d,0xee,0xa1};
    static std::uint8_t c80[32] = {0x0a,0xab,0xbb,0xd7,0x27,0x02,0x68,0x1f,0xed,0x58,0xb7,0x5a,0xc4,0x77,0x5a,0x6f,0x8e,0x0b,0xe0,0xe5,0x3e,0xba,0x28,0x68,0x79,0x74,0xb6,0x5f,0x0c,0xc5,0xae,0x0e};
    sm2_fp_from_bytes(a, a80);
    sm2_fp_from_bytes(b, b80);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c80, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a81[32] = {0x9a,0xee,0x82,0xd3,0x1d,0xe2,0xba,0x5c,0x8a,0x58,0x2d,0xb7,0x61,0xfe,0xc2,0x7d,0xf6,0x09,0x9d,0xf4,0xc0,0x59,0x5e,0xfd,0x98,0x75,0x84,0x5d,0x1a,0xef,0x86,0x56};
    static std::uint8_t b81[32] = {0x8d,0x0a,0x5b,0x40,0x21,0xa5,0x0a,0x9d,0x0d,0x13,0x4a,0xdc,0x07,0x4b,0x34,0x76,0x9c,0x74,0x43,0x71,0xf8,0x8b,0xd6,0x22,0x29,0xf7,0xa2,0x07,0x69,0xef,0xcc,0xd7};
    static std::uint8_t c81[32] = {0xbd,0x96,0x38,0xde,0xb6,0xef,0x78,0xc5,0x80,0xfc,0x69,0x26,0xa2,0xaf,0xa8,0x8d,0x34,0x00,0x15,0xd4,0x08,0x0b,0x82,0xcc,0x87,0x4b,0xe1,0x55,0x99,0xcb,0xf9,0x82};
    sm2_fp_from_bytes(a, a81);
    sm2_fp_from_bytes(b, b81);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c81, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a82[32] = {0xdf,0xec,0x20,0xa8,0x78,0xe0,0x8d,0x0a,0x01,0xb6,0xdc,0xe2,0x96,0x98,0xa7,0xed,0x32,0xdc,0x42,0x0d,0x45,0x22,0x94,0x4c,0xd8,0xf5,0x99,0x99,0x03,0x53,0x6c,0x7d};
    static std::uint8_t b82[32] = {0xa3,0x80,0xf0,0x83,0x7a,0x34,0x0a,0xf1,0x2a,0xcc,0xe6,0xd9,0x7b,0xd4,0xa6,0x4a,0xc6,0x70,0xd8,0xbd,0xd5,0x88,0xcb,0x91,0xea,0xb4,0x6f,0x4a,0x5a,0xf2,0xc2,0xf8};
    static std::uint8_t c82[32] = {0x9a,0x33,0x62,0x4a,0x0d,0x18,0xc2,0xd4,0x25,0x0a,0x74,0x70,0xa5,0xbe,0x51,0x7f,0xca,0x09,0x89,0x62,0x1b,0xdb,0x31,0xa7,0xd7,0xf9,0xa1,0xc2,0xd3,0x36,0x15,0x88};
    sm2_fp_from_bytes(a, a82);
    sm2_fp_from_bytes(b, b82);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c82, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a83[32] = {0xc0,0x43,0x26,0xc9,0xac,0x4d,0xca,0xf6,0x36,0xe9,0x2c,0xaa,0x29,0xaa,0x54,0x58,0x01,0xee,0x38,0x83,0xf7,0x2f,0x8e,0x62,0x82,0x28,0x10,0x36,0x13,0x4d,0x34,0xdc};
    static std::uint8_t b83[32] = {0x02,0xb1,0x8c,0xd2,0x31,0xe9,0x30,0xce,0xf3,0xa2,0x87,0x30,0x88,0x28,0x7d,0x9d,0xf1,0xe7,0x25,0x82,0x45,0xff,0xaf,0x97,0x4d,0xdd,0xee,0xd6,0xb5,0xd0,0x08,0xb9};
    static std::uint8_t c83[32] = {0x90,0x76,0x5e,0xa4,0x05,0x2f,0xfa,0xeb,0x77,0x43,0xac,0xb6,0xd3,0x01,0xdb,0x07,0xf4,0xbb,0xde,0x39,0xc5,0x3e,0xe6,0xfc,0xef,0x93,0xbd,0x46,0xeb,0x3c,0xc3,0xca};
    sm2_fp_from_bytes(a, a83);
    sm2_fp_from_bytes(b, b83);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c83, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a84[32] = {0xc0,0x99,0x8e,0xc3,0x5a,0xd5,0xa9,0x50,0x16,0x79,0x39,0xb3,0xe1,0x29,0xd3,0x19,0xaf,0x55,0x91,0x28,0xfa,0x21,0x1e,0x8f,0x27,0x15,0x18,0x5f,0x4e,0x87,0x91,0xe0};
    static std::uint8_t b84[32] = {0x5c,0xd6,0xa5,0xcc,0x29,0x88,0x2c,0x45,0x9a,0x07,0xbe,0xd0,0x72,0xc4,0x66,0x8e,0x8a,0xe9,0xea,0x87,0x23,0xd5,0xe2,0xd9,0x24,0x1b,0xa6,0x22,0xbe,0xe7,0xbf,0x0b};
    static std::uint8_t c84[32] = {0xd2,0x20,0x5a,0xe2,0x66,0x01,0x4d,0x1a,0x15,0x4d,0xa2,0xe5,0x60,0x60,0x2b,0x90,0xdb,0x83,0x24,0x9f,0xd2,0xc0,0xa6,0x29,0x8e,0x6e,0x5e,0xd9,0x8f,0x01,0x87,0x03};
    sm2_fp_from_bytes(a, a84);
    sm2_fp_from_bytes(b, b84);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c84, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a85[32] = {0xac,0x48,0x02,0x18,0xf2,0xed,0xb8,0x9b,0x6b,0x64,0x02,0xd8,0x31,0xb7,0x21,0x10,0x94,0x71,0x7a,0x15,0x28,0x8c,0x9e,0xb1,0xeb,0xa1,0x77,0xe0,0xce,0x1e,0xc1,0xa8};
    static std::uint8_t b85[32] = {0x52,0xfa,0x17,0x41,0x21,0x9c,0xbe,0x2c,0x63,0xe0,0x3c,0xe9,0x90,0xf0,0xad,0x6e,0xff,0x35,0xf4,0x79,0xca,0x77,0xc2,0xdf,0x33,0xc6,0x0d,0xc4,0xee,0x7b,0x72,0x30};
    static std::uint8_t c85[32] = {0xcd,0xe7,0x9f,0x7a,0x13,0x40,0x98,0xd2,0xba,0x49,0xfc,0x1a,0x2f,0xcd,0x7f,0xed,0x38,0x4e,0xd0,0x0b,0x7c,0xbb,0x23,0x11,0x1b,0x7a,0xb8,0x65,0xd7,0x40,0x68,0x4b};
    sm2_fp_from_bytes(a, a85);
    sm2_fp_from_bytes(b, b85);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c85, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a86[32] = {0x8c,0xc6,0x20,0x6a,0xc8,0x1a,0x94,0x85,0x9b,0xaf,0x5b,0xe1,0xe5,0x06,0x80,0x76,0x27,0x30,0x84,0xb1,0x37,0x6f,0x22,0xb2,0x9a,0x3f,0xeb,0x5d,0x55,0xf2,0xa6,0x78};
    static std::uint8_t b86[32] = {0x57,0x8b,0xca,0xe3,0x17,0x93,0x13,0xc5,0x67,0xcf,0x89,0x76,0xc3,0x5f,0xce,0x14,0x24,0xb0,0xf4,0x5a,0xc3,0x33,0xcc,0x9f,0xf0,0x2f,0x22,0x10,0xbe,0x24,0x40,0xb8};
    static std::uint8_t c86[32] = {0xdd,0x25,0x9b,0xcd,0x35,0xe9,0x96,0xf7,0x81,0xcc,0x2d,0xc9,0x18,0x15,0x6c,0xaf,0x71,0x36,0x6f,0xdd,0x98,0x96,0x68,0xfb,0xea,0xe0,0x88,0x8b,0x1b,0xd5,0x72,0x06};
    sm2_fp_from_bytes(a, a86);
    sm2_fp_from_bytes(b, b86);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c86, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a87[32] = {0xe9,0x3c,0xdd,0x6b,0x79,0xb2,0x06,0xa9,0x02,0x9a,0xe6,0x1e,0x6e,0x52,0x71,0x80,0xbe,0xd4,0x90,0xac,0xf0,0x63,0x70,0xf9,0x3c,0x83,0x3c,0x47,0xb2,0xaa,0x8a,0x32};
    static std::uint8_t b87[32] = {0x27,0xf5,0x4e,0x42,0xc1,0x5e,0x20,0x16,0x3b,0x7c,0xef,0xc6,0xda,0x64,0x1d,0x1a,0x04,0xcd,0xfe,0x54,0x67,0x3a,0x5d,0xba,0xe8,0x0c,0xc7,0x6c,0xe1,0xf4,0x19,0x16};
    static std::uint8_t c87[32] = {0xfe,0xe1,0x53,0xed,0x3e,0xa5,0xf7,0xba,0x40,0x3f,0x43,0x3f,0xb0,0x06,0xaa,0x15,0xa0,0x38,0xc2,0xd4,0xf7,0xe9,0xf0,0x99,0x76,0x73,0xc9,0xf3,0x33,0x3d,0xa9,0x95};
    sm2_fp_from_bytes(a, a87);
    sm2_fp_from_bytes(b, b87);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c87, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a88[32] = {0x53,0xaf,0xc5,0xc1,0x5b,0x8e,0x47,0x8b,0xf7,0x30,0xb4,0x73,0x97,0x56,0xce,0xf8,0x48,0x77,0xee,0x45,0x31,0x8c,0xbf,0xbd,0x68,0x98,0x29,0xfc,0xc3,0xb3,0x3f,0x7c};
    static std::uint8_t b88[32] = {0xc0,0x6b,0xa9,0xb8,0x21,0x87,0x28,0xca,0x59,0x42,0xce,0x8e,0xb1,0x53,0x00,0x14,0x1e,0x79,0x14,0xc5,0x76,0x8c,0x70,0x65,0xfb,0xf8,0x04,0x5b,0xc1,0x0f,0x5c,0x1d};
    static std::uint8_t c88[32] = {0x59,0x7d,0xbb,0x44,0xa6,0xd2,0xcf,0x94,0x96,0x3a,0x12,0xd2,0x63,0xb2,0xb7,0x1d,0xda,0x29,0xa0,0x7d,0xcb,0xcf,0x10,0x93,0xa6,0x4f,0xd4,0x28,0xcc,0x5a,0x30,0xf6};
    sm2_fp_from_bytes(a, a88);
    sm2_fp_from_bytes(b, b88);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c88, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a89[32] = {0x68,0xfe,0x76,0xd8,0x2d,0x87,0x2c,0x52,0xe0,0x14,0xe5,0x6a,0x5b,0x40,0xb3,0x01,0x60,0x57,0x85,0xf2,0x64,0x9f,0x9f,0x0b,0x72,0x99,0xee,0xc5,0x45,0x19,0xcc,0xff};
    static std::uint8_t b89[32] = {0x78,0x80,0x11,0xe2,0x4b,0x13,0x04,0xf1,0xd6,0x64,0x42,0xf1,0x7f,0x1e,0x60,0xfc,0x21,0x96,0x8f,0xc3,0xdc,0x5a,0xc6,0xe5,0xdf,0x00,0x78,0xcf,0xa9,0x07,0xb8,0x52};
    static std::uint8_t c89[32] = {0x9d,0xc7,0x66,0x24,0xdd,0x13,0xc9,0x9a,0xb9,0x8c,0x40,0xc2,0xef,0x15,0x7b,0x72,0x1d,0xa6,0xf3,0xc5,0x13,0x72,0x28,0x3c,0x26,0x52,0x62,0xef,0xfb,0x70,0xfb,0xfe};
    sm2_fp_from_bytes(a, a89);
    sm2_fp_from_bytes(b, b89);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c89, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a90[32] = {0xb8,0x27,0xe7,0x72,0x07,0x22,0xce,0x4a,0x5e,0xc9,0xef,0xa3,0x52,0x58,0xad,0x28,0x7a,0xea,0xd0,0xb6,0xcd,0x25,0x6a,0x1c,0x0a,0xb5,0x48,0x0a,0x27,0x7c,0x6a,0x33};
    static std::uint8_t b90[32] = {0x40,0xe0,0xed,0xc4,0x1f,0x2f,0xac,0x3e,0xaa,0xde,0x12,0x8b,0x9c,0x4c,0xcb,0xe7,0x5c,0xf9,0x18,0x88,0xd1,0xe5,0x8a,0x95,0xd8,0x20,0xf2,0x8c,0xfc,0xca,0x85,0x92};
    static std::uint8_t c90[32] = {0x84,0x55,0xc8,0xc6,0x91,0x84,0x32,0x0a,0xae,0x84,0xcc,0xcb,0x61,0x71,0x39,0xd3,0x3a,0x83,0x48,0x62,0x5a,0x8e,0x72,0xea,0x5e,0xfd,0xc2,0x96,0x02,0xa7,0xb4,0x3d};
    sm2_fp_from_bytes(a, a90);
    sm2_fp_from_bytes(b, b90);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c90, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a91[32] = {0x29,0xa7,0x14,0x55,0x1b,0xa3,0xbd,0xb6,0x41,0x5f,0xc1,0x03,0x90,0x6e,0xa9,0x7f,0xb2,0x18,0x32,0xd2,0x91,0x33,0x00,0xb1,0x7a,0x03,0xf3,0xf6,0xe4,0x6b,0x80,0xc6};
    static std::uint8_t b91[32] = {0xa6,0x63,0xd5,0x67,0x85,0xd0,0xd3,0xbb,0x70,0x9f,0xf9,0xc7,0x00,0xe2,0xd1,0xc9,0x60,0xcd,0x17,0x71,0xbc,0xfb,0xac,0x37,0x3f,0xd1,0x6a,0x65,0xa1,0x08,0xf5,0xb1};
    static std::uint8_t c91[32] = {0x5d,0xbc,0x6f,0xb6,0xd5,0xa5,0x31,0x73,0x51,0x05,0x13,0xc2,0x91,0x82,0xc5,0x9c,0x0a,0x8e,0xac,0xa2,0xdb,0xf8,0xc0,0xa2,0xda,0x07,0x8b,0xdc,0xb0,0xfc,0x80,0x1c};
    sm2_fp_from_bytes(a, a91);
    sm2_fp_from_bytes(b, b91);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c91, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a92[32] = {0x76,0xc1,0xed,0xea,0x01,0xa6,0x27,0x00,0xe7,0x22,0xb5,0x98,0x09,0xd7,0x75,0xf1,0xed,0x5c,0x92,0x81,0xad,0xd1,0xd7,0xb8,0x21,0x07,0xc9,0x9b,0x97,0xf9,0x33,0x28};
    static std::uint8_t b92[32] = {0x05,0xd2,0x0d,0x72,0x3e,0xba,0x3c,0x7e,0x18,0x5f,0xb4,0xf6,0x92,0xdd,0x85,0x7c,0x6c,0xef,0x4c,0x42,0x84,0x6b,0x44,0x6f,0x94,0x6a,0x23,0x0f,0xeb,0x59,0x1d,0xa3};
    static std::uint8_t c92[32] = {0xb4,0x19,0x23,0x17,0xce,0x87,0xd7,0x65,0xe0,0xc7,0x59,0x0c,0x6d,0x3a,0xfc,0xc8,0x28,0x83,0xf5,0x54,0x4c,0x74,0xe0,0x8b,0xda,0xf0,0x93,0xe1,0x92,0xed,0x1b,0x36};
    sm2_fp_from_bytes(a, a92);
    sm2_fp_from_bytes(b, b92);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c92, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a93[32] = {0xc3,0xa4,0x9f,0x50,0x4b,0x09,0xfc,0x52,0x81,0x71,0xca,0xe4,0xef,0x7b,0x12,0xdb,0x55,0x96,0x8a,0x9d,0xb3,0xb8,0x64,0xfe,0x55,0x73,0x77,0x54,0x98,0x62,0xa7,0x31};
    static std::uint8_t b93[32] = {0x97,0xb5,0xb3,0xf5,0xa2,0x68,0xea,0x2a,0x64,0xd7,0x62,0x91,0x45,0xf9,0x94,0x6c,0xbb,0xfa,0x3d,0xd4,0x2a,0xba,0x44,0x29,0x00,0x78,0x80,0x60,0x1f,0x74,0x7e,0x44};
    static std::uint8_t c93[32] = {0x1a,0x6c,0x8a,0x62,0x0d,0x7a,0xfa,0x7a,0xd6,0xd7,0x0f,0xe2,0xf0,0xf6,0x2b,0x51,0x8a,0xfc,0x56,0x82,0x90,0x8f,0xd4,0x9f,0x80,0x89,0xe4,0x96,0x07,0xb9,0xe7,0xf5};
    sm2_fp_from_bytes(a, a93);
    sm2_fp_from_bytes(b, b93);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c93, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a94[32] = {0xbe,0x3a,0x8c,0x2b,0x2d,0x74,0xfe,0xf8,0x5f,0x5e,0x2e,0x2f,0x40,0x43,0xd0,0xb7,0x78,0xe2,0x54,0x59,0x4f,0x59,0x5a,0xc5,0xfb,0xd1,0x5f,0xed,0xe2,0xcf,0xf0,0x04};
    static std::uint8_t b94[32] = {0x32,0x11,0x7f,0x59,0xdf,0x3a,0xf0,0x9d,0x7e,0x85,0x9d,0x42,0x3b,0xe4,0x55,0x72,0x9f,0xf1,0x1a,0x84,0xcf,0xd7,0x13,0xe7,0x0b,0x82,0xa1,0x9f,0xa2,0xb1,0xb2,0x7b};
    static std::uint8_t c94[32] = {0x62,0xb9,0xf1,0xf0,0x79,0x11,0x61,0x2d,0xcd,0xc6,0xa7,0xa2,0xab,0x5a,0xd8,0x42,0x9f,0x07,0xeb,0x15,0xd4,0x42,0xfe,0xc3,0x81,0x0a,0xc4,0x3e,0x75,0x31,0x49,0x8f};
    sm2_fp_from_bytes(a, a94);
    sm2_fp_from_bytes(b, b94);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c94, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a95[32] = {0x87,0xaf,0x42,0x0c,0xce,0xaf,0x67,0xf8,0x17,0x90,0x17,0xad,0x41,0xbc,0x36,0x04,0x86,0xcd,0x05,0x7d,0x19,0x9d,0x2a,0x8d,0x60,0xab,0x7e,0xfb,0xeb,0xbc,0x9f,0x17};
    static std::uint8_t b95[32] = {0xa8,0xe1,0x67,0xc6,0x36,0x5c,0xf9,0x6f,0xd9,0x35,0x66,0xec,0x6e,0xaa,0x52,0xec,0xfc,0x07,0xef,0xfc,0x25,0x66,0x7e,0xa9,0x2d,0x42,0x7b,0xf9,0xea,0xce,0x82,0x55};
    static std::uint8_t c95[32] = {0x79,0xaf,0x76,0x8d,0x8f,0xde,0xb7,0xaa,0x8d,0x6b,0x70,0xac,0xa9,0xa5,0x66,0xde,0xe4,0xbc,0xa9,0xd9,0x8c,0xe2,0x60,0xef,0x4a,0x5b,0x21,0x74,0x20,0x6b,0x58,0xe5};
    sm2_fp_from_bytes(a, a95);
    sm2_fp_from_bytes(b, b95);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c95, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a96[32] = {0xfa,0x3e,0x61,0xf6,0xf0,0xef,0x80,0x4b,0x5d,0xa4,0xd5,0x90,0x08,0xad,0x2e,0x97,0xdc,0x54,0x46,0xed,0xde,0x69,0xe6,0x16,0x28,0x6d,0xa5,0x32,0x1c,0x7a,0x03,0xd9};
    static std::uint8_t b96[32] = {0xee,0x62,0x37,0x5a,0xa3,0xbc,0x44,0x87,0xd0,0x95,0xec,0x28,0x04,0x24,0xd6,0xcc,0xed,0x62,0x00,0x07,0xc1,0x3d,0xcb,0x63,0x12,0xb1,0x28,0x65,0x92,0xe3,0xec,0xa6};
    static std::uint8_t c96[32] = {0xc1,0x42,0x02,0x1b,0x7c,0xfe,0xe6,0x61,0x03,0x52,0xc9,0x7d,0x44,0xb1,0xee,0x79,0xd6,0x79,0x0c,0xf1,0xc8,0xc7,0xa6,0xcd,0xa1,0x90,0xa0,0x04,0xa9,0xf6,0x87,0x22};
    sm2_fp_from_bytes(a, a96);
    sm2_fp_from_bytes(b, b96);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c96, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a97[32] = {0xa5,0xa7,0x0f,0x84,0x4b,0x10,0x58,0x5c,0x9a,0x74,0xe7,0xe0,0x49,0x55,0xc6,0xdb,0x28,0x78,0x52,0x5a,0x9f,0x48,0x5b,0x61,0xba,0xa3,0xf9,0xfb,0x03,0xbe,0x30,0xfd};
    static std::uint8_t b97[32] = {0x2e,0xa4,0xc3,0xab,0xd0,0x33,0x0b,0x1d,0xae,0x08,0x6c,0xce,0x0a,0x8a,0x1d,0xb4,0x73,0xce,0x3c,0x25,0x86,0xb2,0x36,0x22,0x8c,0x9c,0xbc,0xa7,0x77,0x0f,0x2b,0x15};
    static std::uint8_t c97[32] = {0x7b,0x92,0x7b,0x4d,0x0b,0x08,0x94,0xb9,0x19,0xb7,0xae,0x4a,0x47,0x5e,0x49,0xc6,0x3e,0x38,0xce,0xcf,0x31,0x01,0x31,0x8d,0xbf,0xa3,0x19,0x0f,0x21,0xb7,0x34,0x80};
    sm2_fp_from_bytes(a, a97);
    sm2_fp_from_bytes(b, b97);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c97, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a98[32] = {0x1d,0x40,0xc6,0x3a,0x7f,0x5a,0x3e,0x68,0x0b,0x65,0xcf,0x67,0xac,0x82,0x66,0x25,0xf8,0x86,0xd5,0xc4,0x80,0x67,0xe7,0x94,0xb9,0xc8,0xcc,0xfe,0xcc,0x98,0x92,0xcf};
    static std::uint8_t b98[32] = {0x9d,0x8c,0xd1,0xce,0xf0,0xed,0xe7,0x60,0xe0,0x30,0x36,0x14,0xd1,0xa0,0x13,0x40,0xbb,0x6d,0xcb,0x66,0xa7,0x32,0x7f,0xc6,0x74,0x8c,0xc7,0x36,0x68,0xdf,0x5c,0x6b};
    static std::uint8_t c98[32] = {0xa9,0x7f,0x7d,0x37,0x68,0x44,0x07,0xfd,0xb7,0x31,0x2c,0x51,0xff,0xd4,0xd6,0x9f,0x9a,0x40,0xf1,0x89,0x14,0x32,0x40,0xf1,0x4b,0x49,0xee,0x78,0x09,0x10,0x5d,0xaf};
    sm2_fp_from_bytes(a, a98);
    sm2_fp_from_bytes(b, b98);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c98, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }

    static std::uint8_t a99[32] = {0xf2,0xef,0x55,0xd1,0x4d,0x91,0xa4,0x5d,0x3f,0x70,0xfc,0x84,0xdf,0xfe,0x4e,0xad,0xac,0x4f,0x1c,0x3a,0xf1,0x9d,0x9f,0xe2,0x7c,0x5b,0x2b,0x26,0x2c,0x27,0x48,0xcb};
    static std::uint8_t b99[32] = {0xb8,0xee,0xf1,0x64,0xbc,0x66,0x90,0x0d,0xe3,0xe0,0xce,0xb1,0x95,0x96,0x65,0xb0,0x70,0x42,0x4e,0xed,0x9e,0xbf,0xdb,0x6c,0x27,0x5a,0x12,0x05,0x2b,0xe3,0xd6,0x8c};
    static std::uint8_t c99[32] = {0x77,0x1e,0xfe,0x53,0x88,0x77,0x50,0x14,0x91,0x84,0xe2,0xfc,0xc7,0x9e,0x88,0x12,0x34,0xaf,0xca,0x34,0xa7,0x47,0xf5,0x67,0x4c,0xa2,0xc4,0x5f,0xb7,0xee,0x8f,0xc6};
    sm2_fp_from_bytes(a, a99);
    sm2_fp_from_bytes(b, b99);
    sm2_fp_mul(c, a, b);
    sm2_fp_to_bytes(c_data, c);
    if (std::memcmp(c99, c_data, 32) != 0)
    {
        throw std::runtime_error("err in sm2_fp_mul");
    }
}